forked from TrueCloudLab/frostfs-sdk-go
[#190] crypto/ecdsa: Use separate types for RFC-6979 signature algo
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7fe75d2cd9
commit
9f20d74d76
9 changed files with 105 additions and 124 deletions
|
@ -23,17 +23,10 @@ func TestSignature(t *testing.T) {
|
|||
|
||||
for _, f := range []func() neofscrypto.Signer{
|
||||
func() neofscrypto.Signer {
|
||||
var key neofsecdsa.Signer
|
||||
key.SetKey(k.PrivateKey)
|
||||
|
||||
return &key
|
||||
return neofsecdsa.Signer(k.PrivateKey)
|
||||
},
|
||||
func() neofscrypto.Signer {
|
||||
var key neofsecdsa.Signer
|
||||
key.SetKey(k.PrivateKey)
|
||||
key.MakeDeterministic()
|
||||
|
||||
return &key
|
||||
return neofsecdsa.SignerRFC6979(k.PrivateKey)
|
||||
},
|
||||
} {
|
||||
signer := f()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue