Next: General public-key related Functions, Previous: Cryptographic Functions, Up: Public Key cryptography [Contents][Index]
The S-expression based interface is for certain operations on elliptic curves not optimal. Thus a few special functions are implemented to support common operations on curves with one of these assigned curve ids:
GCRY_ECC_CURVE25519
GCRY_ECC_CURVE448
Returns the length in bytes of a point on the curve with the id curveid. 0 is returned for curves which have no assigned id.
This function computes the scalar multiplication on the Montgomery form of the curve with id curveid. If point is NULL the base point of the curve is used. The caller needs to provide a large enough buffer for result and a valid scalar and point.