mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 14:00:48 +02:00
Move new wolfSSL_ED* API's to openssl/ed*.h headers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user