Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for randFieldElement (0.11 sec)

  1. 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)
Back to top