- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for randomScalar (0.15 sec)
-
lib/fips140/v1.0.0.zip
size for P-521. return 3, 80, true } return 0, 0, false // A mismatch } func hashToBytes[P Point[P]](c *Curve[P], hash []byte) []byte { e := bigmod.NewNat() hashToNat(c, e, hash) return e.Bytes(c.N) } // randomScalar is a copy of [randomPoint] that doesn't call ScalarBaseMult. func randomScalar[P Point[P]](c *Curve[P], generate func([]byte) error) (k *bigmod.Nat, err error) { for { b := make([]byte, c.N.Size()) if err := generate(b); err != nil { return nil, err } if excess := len(b)*8 - c.N.BitLen();...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)