mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Fix for expected fail test in openssl_test
for partial block. Fix for mp_test
with ECC disabled, which uses mp_init_copy
.
This commit is contained in:
committed by
Daniel Pouzzner
parent
0f8cf32122
commit
66b59bda9b
@@ -16182,7 +16182,6 @@ static int openssl_test(void)
|
|||||||
EVP_CIPHER_CTX_init(&ctx);
|
EVP_CIPHER_CTX_init(&ctx);
|
||||||
ret = EVP_CipherInit(&ctx, EVP_aes_128_cbc(), key, iv, 0);
|
ret = EVP_CipherInit(&ctx, EVP_aes_128_cbc(), key, iv, 0);
|
||||||
if (ret == WOLFSSL_SUCCESS) {
|
if (ret == WOLFSSL_SUCCESS) {
|
||||||
/* check partial decrypt (not enough padding for full block) */
|
|
||||||
ret = EVP_CipherUpdate(&ctx, plain, &idx, cipher, 1);
|
ret = EVP_CipherUpdate(&ctx, plain, &idx, cipher, 1);
|
||||||
if (ret == WOLFSSL_SUCCESS)
|
if (ret == WOLFSSL_SUCCESS)
|
||||||
plainSz += idx;
|
plainSz += idx;
|
||||||
|
Reference in New Issue
Block a user