File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ KEY_TYPES=("RSA" "RSA-PSS")
3737KEY_SIZES=(" 2048" " 3072" " 4096" )
3838PROVIDER_ARGS=(" -provider-path $WOLFPROV_PATH -provider libwolfprov" " -provider default" )
3939
40+ WOLFPROV_FORCE_FAIL=${WOLFPROV_FORCE_FAIL:- 0}
41+
4042echo " === Running RSA Key Generation Tests ==="
4143
4244# Function to validate key
@@ -305,8 +307,9 @@ generate_and_test_key() {
305307 echo " Checking if ${provider_name} can use the key..."
306308
307309 # Try to use the key with wolfProvider (just check if it loads)
308- if $OPENSSL_BIN pkey -in " $output_file " -check \
309- ${provider_args} -passin pass: > /dev/null; then
310+ # Use -noout to avoid encoder lookup which we don't support with selection mask 133 (0x85)
311+ if $OPENSSL_BIN pkey -in " $output_file " -check -noout \
312+ ${provider_args} -passin pass: ; then
310313 echo " [PASS] ${provider_name} can use ${key_type} key (${key_size} )"
311314 check_force_fail
312315 else
You can’t perform that action at this time.
0 commit comments