- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for randomPoint (0.09 sec)
-
lib/fips140/v1.0.0.zip
io.Reader) (*PrivateKey, error) { fips140.RecordApproved() k, Q, err := randomPoint(c, func(b []byte) error { return drbg.ReadWithReader(rand, b) }) if err != nil { return nil, err } priv := &PrivateKey{ pub: PublicKey{ curve: c.curve, q: Q.Bytes(), }, d: k.Bytes(c.N), } if err := fipsPCT(c, priv); err != nil { // This clearly can't happen, but FIPS 140-3 mandates that we check it. panic(err) } return priv, nil } // randomPoint returns a random scalar and the corresponding point using a // procedure...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)