summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/DSA_generate_parameters.3
diff options
context:
space:
mode:
authortb <>2023-07-26 12:24:28 +0000
committertb <>2023-07-26 12:24:28 +0000
commit51094273f9913bba740b53ddcc63a0b674702656 (patch)
treef9770131766b05408b2bc149fdd1f6af7f20a0c6 /src/lib/libcrypto/man/DSA_generate_parameters.3
parent7ddfedb8239257acd9515c7a6b28b9dbbbde2cc6 (diff)
downloadopenbsd-51094273f9913bba740b53ddcc63a0b674702656.tar.gz
openbsd-51094273f9913bba740b53ddcc63a0b674702656.tar.bz2
openbsd-51094273f9913bba740b53ddcc63a0b674702656.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/man/DSA_generate_parameters.3')
0 files changed, 0 insertions, 0 deletions