package cryptokit
Module Cryptokit.P521Source
NIST elliptic curve P-521
Parameters of the curve
The type of points on the curve.
Encode a point as a string according to P1363-2000. If compressed is false, the encoding contains the x and y coordinates. If compressed is true, the encoding only contains the x coordinate and the sign of y.
Decode a P1363-2000 encoding (as produced by encode_point) into a point of the curve.
Multiplication of a point by a scalar. mul n p is p added to itself n times. n must be non-negative.