We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a10f6 commit 5b95e2aCopy full SHA for 5b95e2a
test/index.js
@@ -63,9 +63,15 @@ fixtures.valid.ec.forEach(function (f) {
63
}
64
65
test(f.message, function (t) {
66
- var nSign = nCrypto.createSign(f.scheme)
+ var nSign
67
+ try {
68
+ nSign = nCrypto.createSign(f.scheme)
69
+ } catch (ex) {
70
+ console.info('skipping unsupported scheme', f.scheme)
71
+ t.end()
72
+ return
73
+ }
74
var bSign = bCrypto.createSign(f.scheme)
-
75
var bSig = bSign.update(message).sign(priv)
76
var nSig = nSign.update(message).sign(priv)
77
t.notEqual(bSig.toString('hex'), nSig.toString('hex'), 'not equal sigs')
0 commit comments