mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-04-29 15:53:23 +02:00
Added ABI macros for managing interface changes
This commit is contained in:
@@ -4219,6 +4219,7 @@ static void wc_ecc_free_async(ecc_key* key)
|
||||
outlen [in/out] The max size and resulting size of the shared secret
|
||||
return MP_OKAY if successful
|
||||
*/
|
||||
WOLFSSL_ABI
|
||||
int wc_ecc_shared_secret(ecc_key* private_key, ecc_key* public_key, byte* out,
|
||||
word32* outlen)
|
||||
{
|
||||
@@ -5438,6 +5439,7 @@ void wc_ecc_key_free(ecc_key* key)
|
||||
return MP_OKAY if successful,
|
||||
upon error all allocated memory will be freed
|
||||
*/
|
||||
WOLFSSL_ABI
|
||||
int wc_ecc_make_key(WC_RNG* rng, int keysize, ecc_key* key)
|
||||
{
|
||||
return wc_ecc_make_key_ex(rng, keysize, key, ECC_CURVE_DEF);
|
||||
@@ -5518,6 +5520,7 @@ int wc_ecc_init_ex(ecc_key* key, void* heap, int devId)
|
||||
return ret;
|
||||
}
|
||||
|
||||
WOLFSSL_ABI
|
||||
int wc_ecc_init(ecc_key* key)
|
||||
{
|
||||
#ifdef WOLFSSL_QNX_CAAM
|
||||
@@ -9376,6 +9379,7 @@ static int _ecc_validate_public_key(ecc_key* key, int partial, int priv)
|
||||
|
||||
|
||||
/* perform sanity checks on ecc key validity, 0 on success */
|
||||
WOLFSSL_ABI
|
||||
int wc_ecc_check_key(ecc_key* key)
|
||||
{
|
||||
int ret;
|
||||
@@ -10394,6 +10398,7 @@ static int ecc_public_key_size(ecc_key* key, word32* sz)
|
||||
#endif
|
||||
|
||||
/* key size in octets */
|
||||
WOLFSSL_ABI
|
||||
int wc_ecc_size(ecc_key* key)
|
||||
{
|
||||
if (key == NULL || key->dp == NULL)
|
||||
@@ -10403,6 +10408,7 @@ int wc_ecc_size(ecc_key* key)
|
||||
}
|
||||
|
||||
/* maximum signature size based on key size */
|
||||
WOLFSSL_ABI
|
||||
int wc_ecc_sig_size_calc(int sz)
|
||||
{
|
||||
int maxSigSz = 0;
|
||||
@@ -10420,6 +10426,7 @@ int wc_ecc_sig_size_calc(int sz)
|
||||
}
|
||||
|
||||
/* maximum signature size based on actual key curve */
|
||||
WOLFSSL_ABI
|
||||
int wc_ecc_sig_size(const ecc_key* key)
|
||||
{
|
||||
int maxSigSz;
|
||||
@@ -12262,6 +12269,7 @@ void wc_ecc_fp_init(void)
|
||||
|
||||
|
||||
/** Free the Fixed Point cache */
|
||||
WOLFSSL_ABI
|
||||
void wc_ecc_fp_free(void)
|
||||
{
|
||||
#if !defined(WOLFSSL_SP_MATH)
|
||||
|
||||
@@ -126,6 +126,7 @@ static volatile int initRefCount = 0;
|
||||
/* Used to initialize state for wolfcrypt
|
||||
return 0 on success
|
||||
*/
|
||||
WOLFSSL_ABI
|
||||
int wolfCrypt_Init(void)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -361,6 +362,7 @@ long wolfCrypt_heap_peakBytes_checkpoint(void) {
|
||||
#endif
|
||||
|
||||
/* return success value is the same as wolfCrypt_Init */
|
||||
WOLFSSL_ABI
|
||||
int wolfCrypt_Cleanup(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
Reference in New Issue
Block a user