You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
createHash after createECDH with Oakley curves #4686
constcrypto=require('crypto');crypto.createECDH('Oakley-EC2N-3');// ok with 'secp256k1', also fails with Oakley-EC2N-4crypto.createHash('sha256');// also fails with 'md5', 'sha1'
unexpected output:
crypto.js:50
this._handle = new binding.Hash(algorithm);
^
Error: error:0306E06C:bignum routines:BN_mod_inverse:no inverse
at Error (native)
at new Hash (crypto.js:50:18)
at Object.Hash (crypto.js:49:12)
at Object.<anonymous> (example-fail.js:3:8)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:136:18)
Activity
jasnell commentedon Jan 14, 2016
@nodejs/crypto
indutny commentedon Jan 14, 2016
Hell yes! Another cleanup error. I wonder if we should consider cleaning errors before doing any cryptography? Does it make sense @nodejs/crypto ?
crypto: clear error stack in ECDH::Initialize
indutny commentedon Jan 14, 2016
Should be fixed by #4689
crypto: clear error stack in ECDH::Initialize
crypto: clear error stack in ECDH::Initialize
crypto: clear error stack in ECDH::Initialize
crypto: clear error stack in ECDH::Initialize
crypto: clear error stack in ECDH::Initialize
crypto: clear error stack in ECDH::Initialize
crypto: clear error stack in ECDH::Initialize