This commit is contained in:
sublimator
2014-03-08 23:37:25 +07:00
parent a7581b1ec8
commit 007c2e7e5c

View File

@@ -17,7 +17,7 @@ sjcl.ecc.ecdsa.publicKey.prototype = {
l = R.bitLength(),
r = sjcl.bn.fromBits(w.bitSlice(rs,0,l)),
s = sjcl.bn.fromBits(w.bitSlice(rs,l,2*l)),
sInv = s.modInverse(R),
sInv = s.inverseMod(R),
hG = sjcl.bn.fromBits(hash).mul(sInv).mod(R),
hA = r.mul(sInv).mod(R),
r2 = this._curve.G.mult2(hG, hA, this._point).x;