var bn = require('./');

var p = new bn('ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f', 16);
var a = new bn('79be667e f9dcbbac 55a06295 ce870b07 029bfcdb 2dce28d9 59f2815b 16f81798', 16);

var c = a.sqr();
var m = bn.red('p25519');
var am = a.toRed(m);

var t = 0;
console.log(a.sqr());
console.time('montSqr');
for (var i = 0; i < 1000000; i++) {
  t += am.redSqr().length;
}
console.timeEnd('montSqr');
console.log(t);
