Skip to content

Commit 4d595d1

Browse files
committed
fixup! crypto: split OpenSSL 3, BoringSSL, and legacy backends
1 parent 195951b commit 4d595d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-crypto-key-objects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ if (!process.features.openssl_is_boringssl) {
915915
const saltLengthOffset = der.indexOf(saltLengthParam);
916916
assert.notStrictEqual(saltLengthOffset, -1);
917917

918-
const importMalformedPublicKey = (key) => {
918+
const importMalformedPublicKey = common.mustCall((key) => {
919919
const malformedKey = createPublicKey({
920920
key,
921921
format: 'der',
@@ -925,7 +925,7 @@ if (!process.features.openssl_is_boringssl) {
925925
assert.strictEqual(malformedKey.asymmetricKeyDetails.modulusLength, 2048);
926926
assert.strictEqual(malformedKey.asymmetricKeyDetails.publicExponent,
927927
65537n);
928-
};
928+
}, 2);
929929

930930
{
931931
const negativeSaltLength = Buffer.from(der);

0 commit comments

Comments
 (0)