- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for hashToBytes (0.52 sec)
-
lib/fips140/v1.0.0.zip
!supportsKDSA { return 0, 0, false } switch c { case p256: return 1, 32, true case p384: return 2, 48, true case p521: // Note that the block size doesn't match the field 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)...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)