mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-28 06:52:19 +01:00
@@ -8590,6 +8590,7 @@ static int SetEccPublicKey(byte* output, ecc_key* key, int with_header)
|
||||
byte curve[MAX_ALGO_SZ];
|
||||
byte pub[ECC_BUFSIZE];
|
||||
#endif
|
||||
int ret;
|
||||
|
||||
#ifdef WOLFSSL_SMALL_STACK
|
||||
pub = (byte*)XMALLOC(ECC_BUFSIZE, key->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
@@ -8597,7 +8598,7 @@ static int SetEccPublicKey(byte* output, ecc_key* key, int with_header)
|
||||
return MEMORY_E;
|
||||
#endif
|
||||
|
||||
int ret = wc_ecc_export_x963(key, pub, &pubSz);
|
||||
ret = wc_ecc_export_x963(key, pub, &pubSz);
|
||||
if (ret != 0) {
|
||||
#ifdef WOLFSSL_SMALL_STACK
|
||||
XFREE(pub, key->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
|
||||
@@ -55,7 +55,11 @@ void lm_copy(byte* x, const byte* a)
|
||||
x[i] = a[i];
|
||||
}
|
||||
|
||||
#ifndef FREESCALE_LTC_ECC
|
||||
#if ((defined(HAVE_CURVE25519) && !defined(CURVE25519_SMALL)) || \
|
||||
(defined(HAVE_ED25519) && !defined(ED25519_SMALL))) && \
|
||||
!defined(FREESCALE_LTC_ECC)
|
||||
/* to be Complementary to fe_operations.c */
|
||||
#else
|
||||
void fe_init()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@ void fe_0(fe h)
|
||||
#if ((defined(HAVE_CURVE25519) && !defined(CURVE25519_SMALL)) || \
|
||||
(defined(HAVE_ED25519) && !defined(ED25519_SMALL))) && \
|
||||
!defined(FREESCALE_LTC_ECC)
|
||||
/* to be Complementary to fe_low_mem.c */
|
||||
void fe_init()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user