Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elliptic

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elliptic - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

4

lib/elliptic/ecdsa/key.js

@@ -100,2 +100,6 @@ var assert = require('assert');

this.priv = new bn(key, 16);
// Ensure that the priv won't be bigger than n, otherwise we may fail
// in fixed multiplication method
this.priv = this.priv.mod(this.ecdsa.n);
};

@@ -102,0 +106,0 @@

2

package.json
{
"name": "elliptic",
"version": "0.14.0",
"version": "0.14.1",
"description": "EC cryptography",

@@ -5,0 +5,0 @@ "main": "lib/elliptic.js",

@@ -47,2 +47,7 @@ var assert = require('assert');

assert(!ecdsa.verify(msg, signature, keys), 'Wrong key verify');
// Invalid private key
var keys = ecdsa.keyPair(keys.getPrivate('hex') + keys.getPrivate('hex'),
'hex');
assert(!ecdsa.verify(msg, signature, keys), 'Wrong key verify');
});

@@ -49,0 +54,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc