From 398c8da5c8c3cf3369ac7e8883823e0c94735ca7 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Fri, 21 Aug 2020 14:50:52 +0200 Subject: 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 Reviewed-by: Nicola Tuveri (Merged from https://github.com/openssl/openssl/pull/12909) --- include/openssl/ec.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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. -- cgit v1.2.3