Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

e >= p, which violates (1 <= e <= p - 1) !!!

  • Loading branch information...
commit c521d61f81086a4ee6e66a54186815b548758e0b 1 parent 69e7b9d
@substack authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 dss.js
View
5 dss.js
@@ -152,6 +152,11 @@ DSS.prototype.challenge = function (kexdh, params) {
var I_C = pack(params.client.kexinit);
var I_S = pack(params.server.kexinit);
+console.log('e = ' + e);
+console.log('p = ' + this.fields.p);
+ assert.ok(e.ge(1) && e.lt(this.fields.p));
+ assert.ok(f.ge(1) && f.lt(this.fields.p));
+
var H = sha1(Buffers([
V_C, V_S, I_C, I_S, K_S,
e.toBuffer('mpint'),
Please sign in to comment.
Something went wrong with that request. Please try again.