forked from TrueCloudLab/frostfs-api-go
session: remove trivial defaultCurve function
This commit is contained in:
parent
701bbafcf1
commit
f0867036fb
2 changed files with 2 additions and 7 deletions
|
@ -2,6 +2,7 @@ package session
|
|||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"crypto/elliptic"
|
||||
"crypto/rand"
|
||||
|
||||
crypto "github.com/nspcc-dev/neofs-crypto"
|
||||
|
@ -16,7 +17,7 @@ type pToken struct {
|
|||
//
|
||||
// Returns non-nil error on key generation error.
|
||||
func NewPrivateToken() (PrivateToken, error) {
|
||||
sk, err := ecdsa.GenerateKey(defaultCurve(), rand.Reader)
|
||||
sk, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue