Minor fixes to CryptoCb wolfCrypt test for AES test and hash support for update/final in same callback.

This commit is contained in:
David Garske
2019-02-07 10:13:37 -08:00
parent 454687f429
commit eb8a2f3a03

View File

@ -23103,7 +23103,7 @@ static int myCryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
info->hash.in,
info->hash.inSz);
}
else if (info->hash.digest != NULL) {
if (info->hash.digest != NULL) {
ret = wc_ShaFinal(
info->hash.sha1,
info->hash.digest);
@ -23128,7 +23128,7 @@ static int myCryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
info->hash.in,
info->hash.inSz);
}
else if (info->hash.digest != NULL) {
if (info->hash.digest != NULL) {
ret = wc_Sha256Final(
info->hash.sha256,
info->hash.digest);
@ -23202,7 +23202,7 @@ int cryptocb_test(void)
#endif
#ifdef HAVE_AES_CBC
if (ret == 0)
ret = aes_cbc_test();
ret = aes_test();
#endif
#endif /* !NO_AES */
#if !defined(NO_SHA) || !defined(NO_SHA256)