Fix possible positive return value for random_rng_test. Removed reference to nrf51_aes_decrypt, which is not supported, and added compile error for it. Corrected ecc_test_raw_vector return code checking. Cleanup in InitMemoryTracker.

This commit is contained in:
David Garske
2016-03-15 18:33:24 -07:00
parent bf058ef1b9
commit f0ea9d747f
3 changed files with 9 additions and 12 deletions

View File

@@ -267,10 +267,7 @@ void wc_AesFreeCavium(Aes* aes)
return nrf51_aes_encrypt(inBlock, (byte*)aes->key, aes->rounds, outBlock);
}
#ifdef HAVE_AES_DECRYPT
static int wc_AesDecrypt(Aes* aes, const byte* inBlock, byte* outBlock)
{
return nrf51_aes_decrypt(inBlock, (byte*)aes->key, aes->rounds, outBlock);
}
#error nRF51 AES Hardware does not support decrypt
#endif /* HAVE_AES_DECRYPT */
#else