Skip to content

Commit 4c6c294

Browse files
author
gojimmypi
committed
Fix evp SM cipherType
1 parent 6945093 commit 4c6c294

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/evp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6040,15 +6040,15 @@ void wolfSSL_EVP_init(void)
60406040
else
60416041
#endif /* HAVE_CHACHA && HAVE_POLY1305 */
60426042
#if defined(WOLFSSL_SM4_GCM)
6043-
if (ctx->cipherType == WOLFSSL_SM4_GCM) {
6043+
if (ctx->cipherType == SM4_GCM_TYPE) {
60446044
if (arg <= 0 || arg > SM4_BLOCK_SIZE) {
60456045
break;
60466046
}
60476047
}
60486048
else
60496049
#endif
60506050
#if defined(WOLFSSL_SM4_CCM)
6051-
if (ctx->cipherType == WOLFSSL_SM4_CCM) {
6051+
if (ctx->cipherType == SM4_CCM_TYPE) {
60526052
if (arg <= 0 || arg > SM4_BLOCK_SIZE) {
60536053
break;
60546054
}

0 commit comments

Comments
 (0)