merge changes made while preparing to push ecc

This commit is contained in:
Quinn Slack 2011-04-20 17:50:23 -07:00
parent 5acaf988be
commit d6ea18a72a
6 changed files with 39 additions and 43 deletions

View file

@ -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) {

View file

@ -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;
}
}