diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2020-08-21 14:50:52 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-09-17 17:15:15 +0200 |
commit | fe2f8aecfe4a0de483334bf671a8eb4f14444c00 (patch) | |
tree | ebffe5ec2b8c7ee772f3c5a29c976dfac981e410 /include | |
parent | bde4aa8dc1946dff189c89396814a98d1052262d (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/12683)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h index aca52e6923..ed83e3bcb0 100644 --- a/include/openssl/ec.h +++ b/include/openssl/ec.h @@ -896,6 +896,8 @@ void EC_KEY_set_flags(EC_KEY *key, int flags); void EC_KEY_clear_flags(EC_KEY *key, int flags); +int EC_KEY_decoded_from_explicit_params(const EC_KEY *key); + /** * Creates a new EC_KEY object using a named curve as underlying * EC_GROUP object. |