mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #8500 from SparkiDev/evp_aes_gcm_test_fix
test_wolfssl_EVP_aes_gcm: fix for mem fail testing
This commit is contained in:
@ -77197,7 +77197,7 @@ static int test_wolfssl_EVP_aes_gcm(void)
|
||||
ciphertxtSz += len;
|
||||
ExpectIntEQ(1, EVP_CIPHER_CTX_ctrl(&en[i], EVP_CTRL_GCM_GET_TAG,
|
||||
AES_BLOCK_SIZE, tag));
|
||||
ExpectIntEQ(wolfSSL_EVP_CIPHER_CTX_cleanup(&en[i]), 1);
|
||||
wolfSSL_EVP_CIPHER_CTX_cleanup(&en[i]);
|
||||
|
||||
EVP_CIPHER_CTX_init(&de[i]);
|
||||
if (i == 0) {
|
||||
@ -77282,7 +77282,7 @@ static int test_wolfssl_EVP_aes_gcm(void)
|
||||
ExpectIntEQ(0, EVP_DecryptFinal_ex(&de[i], decryptedtxt, &len));
|
||||
ExpectIntEQ(0, len);
|
||||
|
||||
ExpectIntEQ(wolfSSL_EVP_CIPHER_CTX_cleanup(&de[i]), 1);
|
||||
wolfSSL_EVP_CIPHER_CTX_cleanup(&de[i]);
|
||||
}
|
||||
#endif /* OPENSSL_EXTRA && !NO_AES && HAVE_AESGCM */
|
||||
return EXPECT_RESULT();
|
||||
|
Reference in New Issue
Block a user