Document EC_POINT_get_affine_coordinates_GFp allowing NULL x and y.

Change-Id: Iffc1f43afc0fed2166509775ac3c52f90eb7cddf
Reviewed-on: https://boringssl-review.googlesource.com/26384
Reviewed-by: Steven Valdez <svaldez@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
David Benjamin 2018-03-05 13:53:54 -05:00 committed by CQ bot account: commit-bot@chromium.org
parent a6bfc45b62
commit 3d2c6b0b0e

View File

@ -209,6 +209,9 @@ OPENSSL_EXPORT int EC_POINTs_make_affine(const EC_GROUP *group, size_t num,
// EC_POINT_get_affine_coordinates_GFp sets |x| and |y| to the affine value of // EC_POINT_get_affine_coordinates_GFp sets |x| and |y| to the affine value of
// |point| using |ctx|, if it's not NULL. It returns one on success and zero // |point| using |ctx|, if it's not NULL. It returns one on success and zero
// otherwise. // otherwise.
//
// Either |x| or |y| may be NULL to skip computing that coordinate. This is
// slightly faster in the common case where only the x-coordinate is needed.
OPENSSL_EXPORT int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group, OPENSSL_EXPORT int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,
const EC_POINT *point, const EC_POINT *point,
BIGNUM *x, BIGNUM *y, BIGNUM *x, BIGNUM *y,