mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Call EVP_CipherFinal in CCM mode for tests.
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2550)
This commit is contained in:
parent
197421b120
commit
00212c6662
@ -1040,13 +1040,9 @@ static int cipher_test_enc(struct evp_test *t, int enc,
|
||||
tmplen += chunklen;
|
||||
}
|
||||
}
|
||||
if (cdat->aead == EVP_CIPH_CCM_MODE)
|
||||
tmpflen = 0;
|
||||
else {
|
||||
err = "CIPHERFINAL_ERROR";
|
||||
if (!EVP_CipherFinal_ex(ctx, tmp + out_misalign + tmplen, &tmpflen))
|
||||
goto err;
|
||||
}
|
||||
err = "CIPHERFINAL_ERROR";
|
||||
if (!EVP_CipherFinal_ex(ctx, tmp + out_misalign + tmplen, &tmpflen))
|
||||
goto err;
|
||||
err = "LENGTH_MISMATCH";
|
||||
if (out_len != (size_t)(tmplen + tmpflen))
|
||||
goto err;
|
||||
|
Loading…
Reference in New Issue
Block a user