diff options
author | Adam Langley <agl@google.com> | 2015-04-20 10:49:33 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2015-04-20 18:10:40 +0000 |
commit | 830beae6ebcc7761769f86a354a2d3d5fdc54507 (patch) | |
tree | 49fc24502a91b51bf9d21b3aeb60a43b7bb0f26b /src/crypto | |
parent | eef60be96fb91dc632a18173b4a4f21e9813aba7 (diff) | |
download | external_boringssl-830beae6ebcc7761769f86a354a2d3d5fdc54507.zip external_boringssl-830beae6ebcc7761769f86a354a2d3d5fdc54507.tar.gz external_boringssl-830beae6ebcc7761769f86a354a2d3d5fdc54507.tar.bz2 |
external/boringssl: add dummy EC_GROUP_set_point_conversion_form.
BoringSSL always uses uncompressed points. This function aborts if
another form is requested or does nothing if uncompressed points are
requested.
Bug: 20419899
Change-Id: Ib5d0707c4e9eaee67e46a0d73d41be70ce0a9353
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/ec/ec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crypto/ec/ec.c b/src/crypto/ec/ec.c index 7d16f2c..6e676c9 100644 --- a/src/crypto/ec/ec.c +++ b/src/crypto/ec/ec.c @@ -863,3 +863,10 @@ const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group) { int EC_METHOD_get_field_type(const EC_METHOD *meth) { return NID_X9_62_prime_field; } + +void EC_GROUP_set_point_conversion_form(EC_GROUP *group, + point_conversion_form_t form) { + if (form != POINT_CONVERSION_UNCOMPRESSED) { + abort(); + } +} |