Merge pull request #1527 from kojo1/RenesasCSPlus

Renesas CS+ projects
This commit is contained in:
Chris Conlon
2018-05-09 10:07:16 -06:00
committed by GitHub
13 changed files with 4124 additions and 6 deletions

View File

@@ -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);

View File

@@ -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()
{
}

View File

@@ -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()
{
}