Merge pull request #2719 from dgarske/nxp_k64_mmcau

Fixes for NXP K64
This commit is contained in:
toddouska
2020-01-09 14:57:11 -08:00
committed by GitHub
3 changed files with 13 additions and 9 deletions

View File

@@ -410,6 +410,7 @@ static int InitSha256(wc_Sha256* sha256)
if (ret != 0) {
return ret;
}
#ifdef FREESCALE_MMCAU_CLASSIC_SHA
cau_sha256_initialize_output(sha256->digest);
#else
@@ -420,6 +421,9 @@ static int InitSha256(wc_Sha256* sha256)
sha256->buffLen = 0;
sha256->loLen = 0;
sha256->hiLen = 0;
#ifdef WOLFSSL_SMALL_STACK_CACHE
sha256->W = NULL;
#endif
return ret;
}

View File

@@ -86,13 +86,13 @@ WOLFSSL_LOCAL int sp_ModExp_4096(mp_int* base, mp_int* exp, mp_int* mod,
#endif
#ifndef WOLFSSL_SP_MATH
/* math settings check */
word32 CheckRunTimeSettings(void)
{
return CTC_SETTINGS;
}
#endif
/* math settings size check */
word32 CheckRunTimeFastMath(void)