CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2023/07/26 06:24:28

Modified files:
        lib/libcrypto/ec: ecp_smpl.c 

Log message:
Introduce and use ec_encode_scalar()

This introduces two "inverses" of the ec_decode_scalar() function that take
a BIGNUM, reduce it modulo p and then encodes it into the curve's field
representation. For setting projective coordinates, we need a specialized
helper that deals with the Z_is_one optimization that is used to optimize
for calculations in standard affine coordinates of the projective plane.
This is used for simplifying EC_POINT_set_Jprojective_coordinates() and
for cleaning up and streamlining EC_GROUP_set_curve().

ok jsing

Reply via email to