diff options
Diffstat (limited to 'include/crypto/ecx.h')
-rw-r--r-- | include/crypto/ecx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/ecx.h b/include/crypto/ecx.h index 0c6655ca79..2aa1ae1d6f 100644 --- a/include/crypto/ecx.h +++ b/include/crypto/ecx.h @@ -72,6 +72,7 @@ struct ecx_key_st { typedef struct ecx_key_st ECX_KEY; +size_t ecx_key_length(ECX_KEY_TYPE type); ECX_KEY *ecx_key_new(ECX_KEY_TYPE type, int haspubkey); unsigned char *ecx_key_allocate_privkey(ECX_KEY *key); void ecx_key_free(ECX_KEY *key); @@ -82,6 +83,8 @@ 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_public_from_private(OPENSSL_CTX *ctx, uint8_t out_public_key[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], OPENSSL_CTX *libctx, const char *propq); @@ -89,6 +92,8 @@ int ED25519_verify(const uint8_t *message, size_t message_len, const uint8_t signature[64], const uint8_t public_key[32], OPENSSL_CTX *libctx, const char *propq); +int ED448_public_from_private(OPENSSL_CTX *ctx, uint8_t out_public_key[57], + const uint8_t private_key[57]); 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, |