forked from TrueCloudLab/frostfs-api-go
[#380] Support changes in signature schemes
Support new `SignatureRFC6979` message. Make `refs.ECDSA_SHA512` to be default scheme. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f4fd28e39b
commit
d065453bd0
9 changed files with 470 additions and 368 deletions
|
@ -35,8 +35,7 @@ type SignatureScheme uint32
|
|||
|
||||
//nolint:revive
|
||||
const (
|
||||
UnspecifiedScheme SignatureScheme = iota
|
||||
ECDSA_SHA512
|
||||
ECDSA_SHA512 SignatureScheme = iota
|
||||
ECDSA_RFC6979_SHA256
|
||||
)
|
||||
|
||||
|
@ -189,7 +188,7 @@ func (s *Signature) GetScheme() SignatureScheme {
|
|||
if s != nil {
|
||||
return s.scheme
|
||||
}
|
||||
return UnspecifiedScheme
|
||||
return 0
|
||||
}
|
||||
|
||||
func (s *Signature) SetScheme(scheme SignatureScheme) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue