summaryrefslogtreecommitdiffstats
path: root/test/afalgtest.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-03-03 14:56:10 +0000
committerMatt Caswell <matt@openssl.org>2016-03-07 13:36:17 +0000
commite2524943ce669ec1f2d4dfd27652d175e48cf848 (patch)
treecf305b5c1492041a4843c6c033f5135fbd005f94 /test/afalgtest.c
parentd245844010bb4ae9867d43edd39782280cc671f8 (diff)
Fix minor errors in the afalg test
The new afalg test should have a copyright date of 2016. Also an incorrect buffer was being sent to EVP_CipherFinal_ex when decrypting. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/afalgtest.c')
-rw-r--r--test/afalgtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/afalgtest.c b/test/afalgtest.c
index d86c0900ac..1013fe0beb 100644
--- a/test/afalgtest.c
+++ b/test/afalgtest.c
@@ -93,7 +93,7 @@ static int test_afalg_aes_128_cbc(ENGINE *e)
if ( !EVP_CIPHER_CTX_reset(ctx)
|| !EVP_CipherInit_ex(ctx, cipher, e, key, iv, 0)
|| !EVP_CipherUpdate(ctx, dbuf, &decl, ebuf, encl)
- || !EVP_CipherFinal_ex(ctx, ebuf+decl, &decf)) {
+ || !EVP_CipherFinal_ex(ctx, dbuf+decl, &decf)) {
fprintf(stderr, "%s() failed decryption\n", __func__);
goto end;
}