frostfs-api-go/pkg/session
Leonard Lyubich 05e74d56db [#283] pkg/session: Implement Sign/Verify methods on Token
Implement `Token.Sign` method which calculates signature of the data of the
`Token` and writes the signature into it. Implement `Token.VerifySignature`
which checks if `Token` signature is presented and valid. These methods
allow to abstract the external context from the details of what kind of data
is being signed and how the signature is stored.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-28 16:32:02 +03:00
..
test [#283] pkg/token: Replace SessionToken into a session package 2021-05-26 12:24:58 +03:00
session.go [#283] pkg/session: Implement Sign/Verify methods on Token 2021-05-28 16:32:02 +03:00
session_test.go [#283] pkg/token: Replace SessionToken into a session package 2021-05-26 12:24:58 +03:00