提交 e2524943 编写于 作者: M Matt Caswell

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: NRichard Levitte <levitte@openssl.org>
上级 d2458440
......@@ -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;
}
......
#!/usr/bin/perl
# ====================================================================
# Copyright (c) 1998-2015 The OpenSSL Project. All rights reserved.
# Copyright (c) 2016 The OpenSSL Project. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册