summaryrefslogtreecommitdiffstats
path: root/include/crypto/ecx.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-03-05 15:42:13 +0000
committerMatt Caswell <matt@openssl.org>2020-03-09 07:59:15 +0000
commit3965480c824c9823db7803cc1a403be863cecc00 (patch)
treeb10a87f0b52e3bc7fba8497685f082915589bae7 /include/crypto/ecx.h
parenteea1e780a1c2c6952af7b9e00129f5aaefb7207e (diff)
Implement provider support for Ed25519 annd Ed448
At the moment we only provider support for these algorithms in the default provider. These algorithms only support "one shot" EVP_DigestSign() and EVP_DigestVerify() as per the existing libcrypto versions. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11261)
Diffstat (limited to 'include/crypto/ecx.h')
-rw-r--r--include/crypto/ecx.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/crypto/ecx.h b/include/crypto/ecx.h
index 6753e14cb2..3e494bf092 100644
--- a/include/crypto/ecx.h
+++ b/include/crypto/ecx.h
@@ -63,6 +63,20 @@ int X25519(uint8_t out_shared_key[32], const uint8_t private_key[32],
void X25519_public_from_private(uint8_t out_public_value[32],
const uint8_t private_key[32]);
+int ED25519_sign(uint8_t *out_sig, const uint8_t *message, size_t message_len,
+ const uint8_t public_key[32], const uint8_t private_key[32]);
+int ED25519_verify(const uint8_t *message, size_t message_len,
+ const uint8_t signature[64], const uint8_t public_key[32]);
+
+int ED448_sign(OPENSSL_CTX *ctx, uint8_t *out_sig, const uint8_t *message,
+ size_t message_len, const uint8_t public_key[57],
+ const uint8_t private_key[57], const uint8_t *context,
+ size_t context_len);
+
+int ED448_verify(OPENSSL_CTX *ctx, const uint8_t *message, size_t message_len,
+ const uint8_t signature[114], const uint8_t public_key[57],
+ const uint8_t *context, size_t context_len);
+
int X448(uint8_t out_shared_key[56], const uint8_t private_key[56],
const uint8_t peer_public_value[56]);
void X448_public_from_private(uint8_t out_public_value[56],