From eb8a2f3a033a32faaa614a80c7bdb3e0c4cbbb83 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 7 Feb 2019 10:13:37 -0800 Subject: [PATCH] Minor fixes to CryptoCb wolfCrypt test for AES test and hash support for update/final in same callback. --- wolfcrypt/test/test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index fe193629a..21b032f86 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -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)