key-encoder-js icon indicating copy to clipboard operation
key-encoder-js copied to clipboard

Mvayngrib curves

Open shea256 opened this issue 9 years ago • 3 comments

shea256 avatar Sep 16 '16 14:09 shea256

This failed with the following:

/home/ubuntu/key-encoder-js/test.js:173
        var ecdh = crypto.createECDH(aliases[curveName])
                          ^
TypeError: Object #<Object> has no method 'createECDH'
    at Test.<anonymous> (/home/ubuntu/key-encoder-js/test.js:173:27)
    at Test.bound [as _cb] (/home/ubuntu/key-encoder-js/node_modules/tape/lib/test.js:63:32)
    at Test.run (/home/ubuntu/key-encoder-js/node_modules/tape/lib/test.js:82:10)
    at Test.bound [as run] (/home/ubuntu/key-encoder-js/node_modules/tape/lib/test.js:63:32)
    at Object.next [as _onImmediate] (/home/ubuntu/key-encoder-js/node_modules/tape/lib/results.js:70:15)
    at processImmediate [as _immediateCallback] (timers.js:345:15)
npm ERR! Test failed.  See above for more details.

@mvayngrib It looks like createECDH isn't present as a method in the crypto library supplied with the specific node version they're running. Any idea how wide the support is for this method?

shea256 avatar Sep 16 '16 14:09 shea256

re: createECDH, it's available starting with node 0.12: https://nodejs.org/docs/v0.12.0/api/crypto.html

re: test vectors, i haven't been able to find them so far...

mvayngrib avatar Sep 21 '16 14:09 mvayngrib

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 16 '23 06:11 CLAassistant