Pike v8.0 release 1738

Method Nettle.ECC_Curve()->new_scalar()


Method new_scalar

Gmp.mpz new_scalar(function(int(0..):string(8bit)) rnd)

Parameter rnd

Randomness function to use as source.

Returns

Returns a random scalar suitable to use as an ECDSA private key or as an ECDH exponent.