diff options
author | tb <> | 2023-07-26 12:12:13 +0000 |
---|---|---|
committer | tb <> | 2023-07-26 12:12:13 +0000 |
commit | e1df32281280bf2a9fc7e0f31572601bd086f7d4 (patch) | |
tree | 5e0ce7b3e02f2f4db916460c18753ac7de6e0d9d /src/usr.sbin | |
parent | 90340319d5c3aaa4aafab37d65055a6f43025434 (diff) | |
download | openbsd-e1df32281280bf2a9fc7e0f31572601bd086f7d4.tar.gz openbsd-e1df32281280bf2a9fc7e0f31572601bd086f7d4.tar.bz2 openbsd-e1df32281280bf2a9fc7e0f31572601bd086f7d4.zip |
Introduce ec_decode_scalar()
This is a helper that decodes a scalar from field-internal representation
to a representation as a BIGNUM in the interval [0, p). This simplifies
EC_GROUP_get_curve() and EC_POINT_get_Jprojective_coordinates() to a few
obvious lines and prepares cleanup in EC_POINT_get_affine_coordinates().
ok jsing
Diffstat (limited to 'src/usr.sbin')
0 files changed, 0 insertions, 0 deletions