mirror of
https://github.com/openssl/openssl.git
synced 2024-11-24 10:34:12 +08:00
apps/speed.c: use 32 byte key material as default
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com> Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4834)
This commit is contained in:
parent
64daf14d9c
commit
546fda260e
@ -2402,10 +2402,10 @@ int speed_main(int argc, char **argv)
|
|||||||
loopargs[k].ctx = EVP_CIPHER_CTX_new();
|
loopargs[k].ctx = EVP_CIPHER_CTX_new();
|
||||||
if (decrypt)
|
if (decrypt)
|
||||||
EVP_DecryptInit_ex(loopargs[k].ctx, evp_cipher, NULL,
|
EVP_DecryptInit_ex(loopargs[k].ctx, evp_cipher, NULL,
|
||||||
key16, iv);
|
key32, iv);
|
||||||
else
|
else
|
||||||
EVP_EncryptInit_ex(loopargs[k].ctx, evp_cipher, NULL,
|
EVP_EncryptInit_ex(loopargs[k].ctx, evp_cipher, NULL,
|
||||||
key16, iv);
|
key32, iv);
|
||||||
EVP_CIPHER_CTX_set_padding(loopargs[k].ctx, 0);
|
EVP_CIPHER_CTX_set_padding(loopargs[k].ctx, 0);
|
||||||
}
|
}
|
||||||
switch (EVP_CIPHER_mode(evp_cipher)) {
|
switch (EVP_CIPHER_mode(evp_cipher)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user