summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec_local.h
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2020-08-21 14:50:52 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-09-21 10:32:42 +0200
commit398c8da5c8c3cf3369ac7e8883823e0c94735ca7 (patch)
treed7f9a71b41d5871262243201783c7e7092ee077e /crypto/ec/ec_local.h
parentee617d0e020d6dd28c079fa7819d009790f2d2b9 (diff)
EC_KEY: add EC_KEY_decoded_from_explicit_params()
The function returns 1 when the encoding of a decoded EC key used explicit encoding of the curve parameters. Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> (Merged from https://github.com/openssl/openssl/pull/12909)
Diffstat (limited to 'crypto/ec/ec_local.h')
-rw-r--r--crypto/ec/ec_local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ec/ec_local.h b/crypto/ec/ec_local.h
index e656fbd5e7..6ea26193e1 100644
--- a/crypto/ec/ec_local.h
+++ b/crypto/ec/ec_local.h
@@ -209,6 +209,8 @@ struct ec_group_st {
BIGNUM *order, *cofactor;
int curve_name; /* optional NID for named curve */
int asn1_flag; /* flag to control the asn1 encoding */
+ int decoded_from_explicit_params; /* set if decoded from explicit
+ * curve parameters encoding */
point_conversion_form_t asn1_form;
unsigned char *seed; /* optional seed for parameters (appears in
* ASN1) */