Skip to content

Commit

Permalink
apps/speed.c: use 32 byte key material as default
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Steuer <[email protected]>

Reviewed-by: Rich Salz <[email protected]>
Reviewed-by: Andy Polyakov <[email protected]>
(Merged from openssl#4834)
  • Loading branch information
p-steuer authored and Andy Polyakov committed Dec 4, 2017
1 parent 64daf14 commit 546fda2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 546fda2

Please sign in to comment.