Skip to content
Browse files

now only failing key_verify, packing seems correct

  • Loading branch information...
1 parent 03b65b3 commit 9e1ea73cb568168c13c442e545a2ba28d5437e4a @substack committed Mar 3, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 dss.js
View
6 dss.js
@@ -108,10 +108,12 @@ console.dir(params);
sign.update(n.toBuffer('mpint'));
});
- var signed = new Buffer(sign.sign(this.keys.private, 'base64'), 'base64');
+ var signed = sign.sign(this.keys.private, 'base64');
+ var H = pack(new Buffer(signed, 'base64'));
+
return Buffers([
new Buffer([ 31 ]), // SSH_MSG_KEXDH_REPLY
- K_S, f.toBuffer('mpint'), signed
+ K_S, f.toBuffer('mpint'), H
]).slice();
};

0 comments on commit 9e1ea73

Please sign in to comment.
Something went wrong with that request. Please try again.