diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2020-08-21 14:50:52 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-09-21 10:32:42 +0200 |
commit | 398c8da5c8c3cf3369ac7e8883823e0c94735ca7 (patch) | |
tree | d7f9a71b41d5871262243201783c7e7092ee077e /include | |
parent | ee617d0e020d6dd28c079fa7819d009790f2d2b9 (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 '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 5af9ebdc7f..ca86ec15c5 100644 --- a/include/openssl/ec.h +++ b/include/openssl/ec.h @@ -829,6 +829,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. * \param nid NID of the named curve. |