Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit df713fa

Browse files
committedMar 8, 2021
fixup! crypto: add optional callback to crypto.sign and crypto.verify
1 parent ccb7ab9 commit df713fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎test/parallel/test-crypto-async-sign-verify.js

+12
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,17 @@ test('ec_secp256k1_public.pem', 'ec_secp256k1_private.pem', 'sha384',
9494
false, { dsaEncoding: 'der' });
9595

9696
// ECDSA w/ ieee-p1363 signature encoding
97+
// TODO(@jasnell): this fails because the signature generated is actually a DER one
9798
test('ec_secp256k1_public.pem', 'ec_secp256k1_private.pem', 'sha384', false,
9899
{ dsaEncoding: 'ieee-p1363' });
100+
101+
// DSA w/ der signature encoding
102+
test('dsa_public_1025.pem', 'dsa_private_1025.pem', 'sha256',
103+
false);
104+
test('dsa_public_1025.pem', 'dsa_private_1025.pem', 'sha256',
105+
false, { dsaEncoding: 'der' });
106+
107+
// DSA w/ ieee-p1363 signature encoding
108+
// TODO(@jasnell): this crashes
109+
test('dsa_public_1025.pem', 'dsa_private_1025.pem', 'sha256', false,
110+
{ dsaEncoding: 'ieee-p1363' });

0 commit comments

Comments
 (0)
Please sign in to comment.