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.10.0 to 0.10.1

v8.log

35

lib/elliptic/curve.js

@@ -224,3 +224,3 @@ var assert = require('assert');

// 2P = O
var ys1 = this.y.montShl(1);
var ys1 = this.y.montAdd(this.y);
if (ys1.cmpn(0) === 0)

@@ -233,5 +233,5 @@ return this.curve.point(null, null);

var dyinv = ys1.montInvm();
var c = x2.montShl(1).montIAdd(x2).montIAdd(a).montMul(dyinv);
var c = x2.montAdd(x2).montIAdd(x2).montIAdd(a).montMul(dyinv);
var nx = c.montSqr().montISub(this.x.montShl(1));
var nx = c.montSqr().montISub(this.x.montAdd(this.x));
var ny = c.montMul(this.x.montSub(nx)).montISub(this.y);

@@ -371,3 +371,3 @@ return this.curve.point(nx, ny);

var nx = r.montSqr().montIAdd(g).montISub(v.montShl(1));
var nx = r.montSqr().montIAdd(g).montISub(v.montAdd(v));
var ny = r.montMul(v.montISub(nx)).montISub(s1.montMul(g));

@@ -410,10 +410,18 @@ var nz = this.z.montMul(p.z).montMul(h);

var jy2 = jy.montSqr();
var c = jx2.montShl(1).montIAdd(jx2).montIAdd(a.montMul(jz4));
var t1 = jx.montShl(2).montMul(jy2);
var nx = c.montSqr().montISub(t1.montShl(1));
var c = jx2.montAdd(jx2).montIAdd(jx2).montAdd(a.montMul(jz4));
var jxd4 = jx.montAdd(jx);
jxd4 = jxd4.montIAdd(jxd4);
var t1 = jxd4.montMul(jy2);
var nx = c.montSqr().montISub(t1.montAdd(t1));
var t2 = t1.montISub(nx);
var ny = c.montMul(t2).montISub(jy2.montSqr().montShl(3));
var nz = jy.montShl(1).montMul(jz);
var jyd8 = jy2.montSqr();
jyd8 = jyd8.montAdd(jyd8);
jyd8 = jyd8.montAdd(jyd8);
jyd8 = jyd8.montAdd(jyd8);
var ny = c.montMul(t2).montISub(jyd8);
var nz = jy.montAdd(jy).montMul(jz);
return this.curve.jpoint(nx, ny, nz);

@@ -423,3 +431,3 @@ }

// Reuse results
var jyd = jy.montShl(1);
var jyd = jy.montAdd(jy);
for (var i = 0; i < pow; i++) {

@@ -429,8 +437,9 @@ var jx2 = jx.montSqr();

var jyd4 = jyd2.montSqr();
var c = jx2.montShl(1).montIAdd(jx2).montIAdd(a.montMul(jz4));
var c = jx2.montAdd(jx2).montIAdd(jx2).montIAdd(a.montMul(jz4));
var t1 = jx.montMul(jyd2);
var nx = c.montSqr().montISub(t1.montShl(1));
var nx = c.montSqr().montISub(t1.montAdd(t1));
var t2 = t1.montISub(nx);
var dny = c.montMul(t2).montShl(1).montISub(jyd4);
var dny = c.montMul(t2);
dny = dny.montIAdd(dny).montISub(jyd4);
var nz = jyd.montMul(jz);

@@ -437,0 +446,0 @@ if (i + 1 < pow)

{
"name": "elliptic",
"version": "0.10.0",
"version": "0.10.1",
"description": "EC cryptography",

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

Sorry, the diff of this file is not supported yet

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