create-ecdh
Advanced tools
Comparing version 2.0.2 to 3.0.0
@@ -28,2 +28,10 @@ var elliptic = require('elliptic'); | ||
byteLength: 32 | ||
}, | ||
secp384r1: { | ||
name: 'p384', | ||
byteLength: 48 | ||
}, | ||
secp521r1: { | ||
name: 'p521', | ||
byteLength: 66 | ||
} | ||
@@ -35,2 +43,4 @@ }; | ||
aliases.p192 = aliases.secp192r1 = aliases.prime192v1; | ||
aliases.p384 = aliases.secp384r1; | ||
aliases.p521 = aliases.secp521r1; | ||
@@ -37,0 +47,0 @@ function ECDH(curve) { |
{ | ||
"name": "create-ecdh", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "createECDH but browserifiable", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"bn.js": "^2.0.0", | ||
"elliptic": "^3.0.0" | ||
"bn.js": "^3.0.0", | ||
"elliptic": "^5.0.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
createECDH [![Build Status](https://travis-ci.org/crypto-browserify/createECDH.svg)](https://travis-ci.org/crypto-browserify/createECDH) | ||
==== | ||
In io.js or node >= 0.11 this module is just a shortcut to crypto.createECDH. In node <= 0.11 or the browser this is a pure JavaScript implimentation, more specifically a wrapper around [elliptic](https://github.com/indutny/elliptic), to give it the same API as node. `secp256k1`, `secp224r1` (aka p-224), `prime256v1` (aka p-256, secp256r1), `prime192v1` (aka p-192, secp192r1) curves all work in both this library and node (though only the highlighted name will work in node). | ||
In io.js or node >= 0.11 this module is just a shortcut to crypto.createECDH. In node <= 0.11 or the browser this is a pure JavaScript implimentation, more specifically a wrapper around [elliptic](https://github.com/indutny/elliptic), to give it the same API as node. `secp256k1`, `secp224r1` (aka p224), `prime256v1` (aka p256, secp256r1), `prime192v1` (aka p192, secp192r1), `secp384r1` (aka p384), `secp521r1` (aka p521) curves all work in both this library and node (though only the highlighted name will work in node). |
4145
112
5
+ Addedbn.js@3.3.0(transitive)
+ Addedelliptic@5.2.1(transitive)
- Removedbn.js@2.2.0(transitive)
- Removedelliptic@3.1.0(transitive)
Updatedbn.js@^3.0.0
Updatedelliptic@^5.0.0