From: Patrick Steuer Date: Sun, 3 Dec 2017 13:28:40 +0000 (+0100) Subject: apps/speed.c: use 32 byte key material as default X-Git-Tag: OpenSSL_1_1_1-pre1~378 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=546fda260e66a3b252f34760afa2c3aaf2f62d5d;p=oweals%2Fopenssl.git 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) --- 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)) {