Module arithmetic

Module arithmetic 

Source
Expand description

Pure Rust implementation of group operations on secp256r1.

Curve parameters can be found in NIST SP 800-186 ยง G.1.2: Curve P-256.

Modulesยง

field ๐Ÿ”’
Field arithmetic modulo p = 2^{224}(2^{32} โˆ’ 1) + 2^{192} + 2^{96} โˆ’ 1
scalar ๐Ÿ”’
Scalar field arithmetic modulo n = 115792089210356248762697446949407573529996955224135760342422259061068512044369
util ๐Ÿ”’
Helper functions.

Type Aliasesยง

AffinePoint
Elliptic curve point in affine coordinates.
ProjectivePoint
Elliptic curve point in projective coordinates.