From 7b2464c1aceaa2cd62eb838fcd596934a5dc52a2 Mon Sep 17 00:00:00 2001 From: Nils Steinger Date: Fri, 1 Mar 2019 11:43:49 +0100 Subject: [PATCH] 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. --- nench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nench.sh b/nench.sh index c05a727..8d51ccb 100755 --- a/nench.sh +++ b/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'