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:
Nils Steinger 2019-03-01 11:43:49 +01:00
parent d95efd96e5
commit 7b2464c1ac
1 changed files with 1 additions and 1 deletions

View File

@ -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'