Move new wolfSSL_ED* API's to openssl/ed*.h headers

This commit is contained in:
Lealem Amedie
2026-04-28 08:21:55 -06:00
parent 8b762301ef
commit 5da71f4c98
4 changed files with 28 additions and 14 deletions
+14
View File
@@ -42,6 +42,20 @@ int wolfSSL_ED25519_verify(const unsigned char *msg, unsigned int msgSz,
const unsigned char *pub, unsigned int pubSz,
const unsigned char *sig, unsigned int sigSz);
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL)
#ifndef WC_ED25519KEY_TYPE_DEFINED
typedef struct ed25519_key ed25519_key;
#define WC_ED25519KEY_TYPE_DEFINED
#endif
/* Not OpenSSL API's, but these two constructors are leveraged within
* wolfSSL's compat layer for Ed25519 object creation/deletion simplicity */
WOLFSSL_API
ed25519_key* wolfSSL_ED25519_new(void* heap, int devId);
WOLFSSL_API
void wolfSSL_ED25519_free(ed25519_key* key);
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
+14
View File
@@ -42,6 +42,20 @@ int wolfSSL_ED448_verify(const unsigned char *msg, unsigned int msgSz,
const unsigned char *pub, unsigned int pubSz,
const unsigned char *sig, unsigned int sigSz);
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL)
#ifndef WC_ED448KEY_TYPE_DEFINED
typedef struct ed448_key ed448_key;
#define WC_ED448KEY_TYPE_DEFINED
#endif
/* Not OpenSSL API's, but these two constructors are leveraged within
* wolfSSL's compat layer for Ed448 object creation/deletion simplicity */
WOLFSSL_API
ed448_key* wolfSSL_ED448_new(void* heap, int devId);
WOLFSSL_API
void wolfSSL_ED448_free(ed448_key* key);
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
-7
View File
@@ -188,13 +188,6 @@ WOLFSSL_API
int wc_ed25519_delete(ed25519_key* key, ed25519_key** key_p);
#endif
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL)
WOLFSSL_API
ed25519_key* wolfSSL_ED25519_new(void* heap, int devId);
WOLFSSL_API
void wolfSSL_ED25519_free(ed25519_key* key);
#endif
#ifdef HAVE_ED25519_KEY_IMPORT
WOLFSSL_API
int wc_ed25519_import_public(const byte* in, word32 inLen, ed25519_key* key);
-7
View File
@@ -170,13 +170,6 @@ WOLFSSL_API
int wc_ed448_delete(ed448_key* key, ed448_key** key_p);
#endif
#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_WPAS_SMALL)
WOLFSSL_API
ed448_key* wolfSSL_ED448_new(void* heap, int devId);
WOLFSSL_API
void wolfSSL_ED448_free(ed448_key* key);
#endif
#ifdef HAVE_ED448_KEY_IMPORT
WOLFSSL_API
int wc_ed448_import_public(const byte* in, word32 inLen, ed448_key* key);