Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,1 @@ | ||
var assert = require('assert'); | ||
var bn = require('bn.js'); | ||
@@ -7,2 +6,3 @@ var elliptic = require('../../elliptic'); | ||
var getJSF = elliptic.utils.getJSF; | ||
var assert = elliptic.utils.assert; | ||
@@ -9,0 +9,0 @@ function BaseCurve(type, conf) { |
@@ -1,2 +0,1 @@ | ||
var assert = require('assert'); | ||
var curve = require('../curve'); | ||
@@ -9,2 +8,3 @@ var elliptic = require('../../elliptic'); | ||
var getNAF = elliptic.utils.getNAF; | ||
var assert = elliptic.utils.assert; | ||
@@ -11,0 +11,0 @@ function EdwardsCurve(conf) { |
@@ -1,2 +0,1 @@ | ||
var assert = require('assert'); | ||
var curve = require('../curve'); | ||
@@ -9,2 +8,3 @@ var elliptic = require('../../elliptic'); | ||
var getNAF = elliptic.utils.getNAF; | ||
var assert = elliptic.utils.assert; | ||
@@ -11,0 +11,0 @@ function MontCurve(conf) { |
@@ -1,2 +0,1 @@ | ||
var assert = require('assert'); | ||
var curve = require('../curve'); | ||
@@ -9,2 +8,3 @@ var elliptic = require('../../elliptic'); | ||
var getNAF = elliptic.utils.getNAF; | ||
var assert = elliptic.utils.assert; | ||
@@ -11,0 +11,0 @@ function ShortCurve(conf) { |
var curves = exports; | ||
var assert = require('assert'); | ||
var hash = require('hash.js'); | ||
@@ -8,2 +7,4 @@ var bn = require('bn.js'); | ||
var assert = elliptic.utils.assert; | ||
function PresetCurve(options) { | ||
@@ -10,0 +11,0 @@ if (options.type === 'short') |
@@ -1,5 +0,5 @@ | ||
var assert = require('assert'); | ||
var bn = require('bn.js'); | ||
var elliptic = require('../../elliptic'); | ||
var utils = elliptic.utils; | ||
var assert = utils.assert; | ||
@@ -6,0 +6,0 @@ var KeyPair = require('./key'); |
@@ -1,2 +0,1 @@ | ||
var assert = require('assert'); | ||
var bn = require('bn.js'); | ||
@@ -6,2 +5,3 @@ | ||
var utils = elliptic.utils; | ||
var assert = utils.assert; | ||
@@ -8,0 +8,0 @@ function KeyPair(ec, priv, pub) { |
@@ -1,2 +0,1 @@ | ||
var assert = require('assert'); | ||
var bn = require('bn.js'); | ||
@@ -6,2 +5,3 @@ | ||
var utils = elliptic.utils; | ||
var assert = utils.assert; | ||
@@ -8,0 +8,0 @@ function Signature(r, s) { |
@@ -1,6 +0,5 @@ | ||
var assert = require('assert'); | ||
var hash = require('hash.js'); | ||
var elliptic = require('../elliptic'); | ||
var utils = elliptic.utils; | ||
var assert = utils.assert; | ||
@@ -7,0 +6,0 @@ function HmacDRBG(options) { |
@@ -1,2 +0,1 @@ | ||
var assert = require('assert'); | ||
var bn = require('bn.js'); | ||
@@ -6,2 +5,7 @@ | ||
utils.assert = function assert(val, msg) { | ||
if (!val) | ||
throw new Error(msg || 'Assertion failed'); | ||
}; | ||
function toArray(msg, enc) { | ||
@@ -8,0 +12,0 @@ if (Array.isArray(msg)) |
{ | ||
"name": "elliptic", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "EC cryptography", | ||
@@ -5,0 +5,0 @@ "main": "lib/elliptic.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136486
3615