mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-11 04:48:39 -04:00
SRP group as object
This commit is contained in:
parent
945d6c4996
commit
57da29902f
2 changed files with 5 additions and 6 deletions
|
@ -8,13 +8,13 @@
|
|||
* @class SRP
|
||||
*/
|
||||
sjcl.keyexchange.srp = {
|
||||
makeVerifier: function(I, P, s, N, g) {
|
||||
makeVerifier: function(I, P, s, group) {
|
||||
var x;
|
||||
// From RFC 5054:
|
||||
// v = g^x mod N
|
||||
x = this.makeX(I, P, s);
|
||||
x = sjcl.bn.fromBits(x);
|
||||
return g.powermod(x, N);
|
||||
return group.g.powermod(x, group.N);
|
||||
},
|
||||
|
||||
makeX: function(I, P, s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue