Logo Search packages:      
Sourcecode: libtomcrypt version File versions  Download package

int(* ltc_math_descriptor::ecc_map)(ecc_point *P, void *modulus, void *mp)

ECC mapping from projective to affine, currently uses (x,y,z) => (x/z^2, y/z^3, 1)

Parameters:
P The point to map
modulus The modulus
mp The "b" value from montgomery_setup()
Returns:
CRYPT_OK on success
Remarks:
The mapping can be different but keep in mind a ecc_point only has three integers (x,y,z) so if you use a different mapping you have to make it fit.


Generated by  Doxygen 1.6.0   Back to index