summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-04-24 15:32:34 +0100
committerMatt Caswell <matt@openssl.org>2020-05-04 09:30:55 +0100
commit969024b4580172b1cd836550e227d64515c628bc (patch)
treeb9a123f73674628424168b0362ba16a3a1e0275f /include
parenta6f8a834ba6f877baa427e3d25694d49beb29306 (diff)
Add the ability to ECX to import keys with only the private key
ECX keys can very easily crete the public key from the private key. Therefore when we import ecx keys it is sufficent to just have the private key. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11635)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/ecx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/ecx.h b/include/crypto/ecx.h
index 5ee6b8ce7e..ef3bf0f3a8 100644
--- a/include/crypto/ecx.h
+++ b/include/crypto/ecx.h
@@ -109,6 +109,7 @@ void X448_public_from_private(uint8_t out_public_value[56],
const uint8_t private_key[56]);
/* Backend support */
+int ecx_public_from_private(ECX_KEY *key);
int ecx_key_fromdata(ECX_KEY *ecx, const OSSL_PARAM params[],
int include_private);