Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
t.test('js sign and verify', function (t) {
t.plan(t)
var mySign = ourCrypto.createSign(scheme)
var mySig = mySign.update(message).sign(priv)
var myVer = ourCrypto.createVerify(scheme)
t.ok(myVer.update(message).verify(pub, mySig), 'validates')
})
t.test('node sign and js verify', function (t) {
t.plan(t)
var mySign = nodeCrypto.createSign(scheme)
var mySig = mySign.update(message).sign(priv)
var myVer = ourCrypto.createVerify(scheme)
t.ok(myVer.update(message).verify(pub, mySig), 'validates')
})