mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-11 04:48:39 -04:00
merge changes made while preparing to push ecc
This commit is contained in:
parent
5acaf988be
commit
d6ea18a72a
6 changed files with 39 additions and 43 deletions
|
@ -275,10 +275,12 @@ sjcl.bn.prototype = {
|
|||
return out;
|
||||
},
|
||||
|
||||
mulmod: function(x, N) {
|
||||
return this.mod(N).mul(x.mod(N)).mod(N);
|
||||
/** this * that mod N */
|
||||
mulmod: function(that, N) {
|
||||
return this.mod(N).mul(that.mod(N)).mod(N);
|
||||
},
|
||||
|
||||
/** this ^ x mod N */
|
||||
powermod: function(x, N) {
|
||||
var result = new sjcl.bn(1), a = new sjcl.bn(this), k = new sjcl.bn(x);
|
||||
while (true) {
|
||||
|
|
|
@ -60,9 +60,9 @@ var sjcl = {
|
|||
this.message = message;
|
||||
},
|
||||
|
||||
/** @class Bug or missing feature in SJCL. */
|
||||
/** @class Something isn't ready. */
|
||||
notReady: function(message) {
|
||||
this.toString = function() { return "GENERATOR NOT READY: "+this.message; };
|
||||
this.toString = function() { return "NOT READY: "+this.message; };
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue