Skip to content

Commit 4ed297b

Browse files
committed
fixup! crypto: support SLH-DSA KeyObject, sign, and verify
1 parent 54b2ab7 commit 4ed297b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/parallel/test-crypto-pqc-key-objects-slh-dsa.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ for (const asymmetricKeyType of [
5959
code: hasOpenSSL(3) ? 'ERR_OSSL_EVP_DECODE_ERROR' : 'ERR_OSSL_EVP_UNSUPPORTED_ALGORITHM',
6060
});
6161

62-
for (const pem of [keys.private, keys.private_seed_only, keys.private_priv_only]) {
63-
assert.throws(() => createPrivateKey(pem), {
64-
code: hasOpenSSL(3) ? 'ERR_OSSL_UNSUPPORTED' : 'ERR_OSSL_EVP_UNSUPPORTED_ALGORITHM',
65-
});
66-
}
62+
assert.throws(() => createPrivateKey(keys.private), {
63+
code: hasOpenSSL(3) ? 'ERR_OSSL_UNSUPPORTED' : 'ERR_OSSL_EVP_UNSUPPORTED_ALGORITHM',
64+
});
6765
} else {
6866
const publicKey = createPublicKey(keys.public);
6967
assertPublicKey(publicKey);

0 commit comments

Comments
 (0)