- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for randFieldElement (0.15 sec)
-
src/crypto/ecdsa/ecdsa_legacy.go
return false } x.Mod(x, N) return x.Cmp(r) == 0 } var one = new(big.Int).SetInt64(1) // randFieldElement returns a random element of the order of the given // curve using the procedure given in FIPS 186-4, Appendix B.5.2. func randFieldElement(c elliptic.Curve, rand io.Reader) (k *big.Int, err error) { // See randomPoint for notes on the algorithm. This has to match, or s390x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 4.8K bytes - Viewed (0) -
src/crypto/ecdsa/ecdsa_s390x.go
c := priv.Curve functionCode, blockSize, ok := canUseKDSA(c) if !ok { return nil, errNoAsm } for { var k *big.Int k, err = randFieldElement(c, csprng) if err != nil { return nil, err } // The parameter block looks like the following for sign. // +---------------------+ // | Signature(R) | // +---------------------+
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 5.3K bytes - Viewed (0)