Method __builtin.Nettle.ECC_Curve()->new_scalar()
- Method
new_scalar
string(8bit)
|Gmp.mpz
new_scalar(function
(int(0..)
:string(8bit)
)rnd
)- Description
Generate a new scalar suitable for use as an ECDSA private key or as an ECDH secret factor.
- Note
Returns the scalar in the preferred representation for the Curve.