From 546fda260e66a3b252f34760afa2c3aaf2f62d5d Mon Sep 17 00:00:00 2001 From: Patrick Steuer Date: Sun, 3 Dec 2017 14:28:40 +0100 Subject: [PATCH] apps/speed.c: use 32 byte key material as default Signed-off-by: Patrick Steuer Reviewed-by: Rich Salz Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/4834) --- apps/speed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/speed.c b/apps/speed.c index 79e4f5c3af..bca2968aa8 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -2402,10 +2402,10 @@ int speed_main(int argc, char **argv) loopargs[k].ctx = EVP_CIPHER_CTX_new(); if (decrypt) EVP_DecryptInit_ex(loopargs[k].ctx, evp_cipher, NULL, - key16, iv); + key32, iv); else EVP_EncryptInit_ex(loopargs[k].ctx, evp_cipher, NULL, - key16, iv); + key32, iv); EVP_CIPHER_CTX_set_padding(loopargs[k].ctx, 0); } switch (EVP_CIPHER_mode(evp_cipher)) {