X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=include%2Fcrypto%2Fecx.h;h=2aa1ae1d6f93ae60a11d33fb02e8c89efe0219c8;hp=0c6655ca79e855d6e4fbc54d46b59faa1e46e1d5;hb=43cd37014ef4433ae8e82ba64bddc42cf0bd618a;hpb=1ee1e551148d963b566a69c2e6e9a583646112fc 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,