Suppress OpenSSL warning about not using PBKDF2
OpenSSL commit 405988f2 (included in v1.1.1 and higher) added support for PBKDF2 in the enc command, along with a warning: > *** WARNING : deprecated key derivation used. > Using -iter or -pbkdf2 would be better. For our benchmark, we don't require security but do require portability (-iter and -pbkdf2 are unsupported in OpenSSL < v1.1.1), so we'll just filter the warning from the output.
This commit is contained in:
parent
d95efd96e5
commit
7b2464c1ac
2
nench.sh
2
nench.sh
@ -211,7 +211,7 @@ printf 'CPU: bzip2-compressing 500 MB\n '
|
||||
command_benchmark bzip2
|
||||
|
||||
printf 'CPU: AES-encrypting 500 MB\n '
|
||||
command_benchmark openssl enc -e -aes-256-cbc -pass pass:12345678
|
||||
command_benchmark openssl enc -e -aes-256-cbc -pass pass:12345678 | sed '/^\*\*\* WARNING : deprecated key derivation used\.$/d;/^Using -iter or -pbkdf2 would be better\.$/d'
|
||||
|
||||
printf '\n'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user