diff options
author | tb <> | 2023-07-26 12:24:28 +0000 |
---|---|---|
committer | tb <> | 2023-07-26 12:24:28 +0000 |
commit | d532e9694d3555ade9ab916e9b71cfc075ca6ccc (patch) | |
tree | f9770131766b05408b2bc149fdd1f6af7f20a0c6 /src/lib/libcrypto/ecdsa/ecdsa.c | |
parent | 076e388cece872bf7c1f674b4d0ee8beae919c8b (diff) | |
download | openbsd-d532e9694d3555ade9ab916e9b71cfc075ca6ccc.tar.gz openbsd-d532e9694d3555ade9ab916e9b71cfc075ca6ccc.tar.bz2 openbsd-d532e9694d3555ade9ab916e9b71cfc075ca6ccc.zip |
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
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecdsa.c')
0 files changed, 0 insertions, 0 deletions