Skip to content

Commit cf3640f

Browse files
authored
Merge pull request #344 from padelsbach/wp-rsa-pss-encoder-check
Fix RSA-PSS command test
2 parents 4cf2bd7 + 06ae1e4 commit cf3640f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/cmd_test/rsa-cmd-test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ KEY_TYPES=("RSA" "RSA-PSS")
3737
KEY_SIZES=("2048" "3072" "4096")
3838
PROVIDER_ARGS=("-provider-path $WOLFPROV_PATH -provider libwolfprov" "-provider default")
3939

40+
WOLFPROV_FORCE_FAIL=${WOLFPROV_FORCE_FAIL:-0}
41+
4042
echo "=== 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

0 commit comments

Comments
 (0)