- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for newPrivateKey (1.27 sec)
-
lib/fips140/v1.0.0.zip
2]) if err != nil { panic("ed25519: internal error: setting scalar failed") } A := (&edwards25519.Point{}).ScalarBaseMult(s) copy(priv.pub[:], A.Bytes()) copy(priv.prefix[:], h[32:]) } func NewPrivateKey(priv []byte) (*PrivateKey, error) { p := &PrivateKey{} return newPrivateKey(p, priv) } func newPrivateKey(priv *PrivateKey, privBytes []byte) (*PrivateKey, error) { fips140.RecordApproved() if l := len(privBytes); l != privateKeySize { return nil, errors.New("ed25519: bad private key length: " +...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)