Skip to content

Commit

Permalink
Clarify EC_POINT_point2bn docs (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored Apr 21, 2023
1 parent 4d5c845 commit 823ae7f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions include/openssl/ec.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,11 @@ OPENSSL_EXPORT int EC_GROUP_set_generator(EC_GROUP *group,
const BIGNUM *cofactor);


// EC_POINT_point2bn converts an |EC_POINT| to |BIGNUM|. On success, returns the
// BIGNUM pointer supplied, |ret|. Otherwise, it returns NULL on error. The
// |ctx| argument may be used if not NULL.
// EC_POINT_point2bn converts an |EC_POINT| to a |BIGNUM| by serializing the
// point into the X9.62 form given by |form| then interpretting it as a BIGNUM.
// On success, it returns the BIGNUM pointer supplied or, if |ret| is NULL,
// allocates and returns a fresh |BIGNUM|. On error, it returns NULL. The |ctx|
// argument may be used if not NULL.
AWS_LC_DEPRECATED OPENSSL_EXPORT BIGNUM *EC_POINT_point2bn(
const EC_GROUP *group, const EC_POINT *point, point_conversion_form_t form,
BIGNUM *ret, BN_CTX *ctx);
Expand Down

0 comments on commit 823ae7f

Please sign in to comment.