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. Change-Id: I80bc01444cdf9c789c9c75312b5527bf4957361b
This commit is contained in:
parent
c10bc853fc
commit
126320c881
@ -858,3 +858,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();
|
||||
}
|
||||
}
|
||||
|
@ -299,6 +299,11 @@ OPENSSL_EXPORT const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group);
|
||||
/* EC_METHOD_get_field_type returns NID_X9_62_prime_field. */
|
||||
OPENSSL_EXPORT int EC_METHOD_get_field_type(const EC_METHOD *meth);
|
||||
|
||||
/* EC_GROUP_set_point_conversion_form aborts the process if |form| is not
|
||||
* |POINT_CONVERSION_UNCOMPRESSED| and otherwise does nothing. */
|
||||
OPENSSL_EXPORT void EC_GROUP_set_point_conversion_form(
|
||||
EC_GROUP *group, point_conversion_form_t form);
|
||||
|
||||
|
||||
/* Old code expects to get EC_KEY from ec.h. */
|
||||
#if !defined(OPENSSL_HEADER_EC_KEY_H)
|
||||
|
Loading…
Reference in New Issue
Block a user