Home
last modified time | relevance | path

Searched refs:modInverse (Results 1 – 22 of 22) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
DDSASigner.java108 k = k.modInverse(q).multiply(m.add(x.multiply(r))); in generateSignature()
140 BigInteger w = s.modInverse(q); in verifySignature()
DECDSASigner.java128 s = k.modInverse(n).multiply(e.add(d.multiply(r))).mod(n); in generateSignature()
162 BigInteger c = s.modInverse(n); in verifySignature()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DRSAKeyPairGenerator.java124 d = e.modInverse(lcm); in generateKeyPair()
142 qInv = q.modInverse(p); in generateKeyPair()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DRSAKeyPairGenerator.java126 d = e.modInverse(lcm); in generateKeyPair()
144 qInv = q.modInverse(p); in generateKeyPair()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/signers/
DDSASigner.java110 k = k.modInverse(q).multiply(m.add(x.multiply(r))); in generateSignature()
142 BigInteger w = s.modInverse(q); in verifySignature()
DECDSASigner.java130 s = k.modInverse(n).multiply(e.add(d.multiply(r))).mod(n); in generateSignature()
164 BigInteger c = s.modInverse(n); in verifySignature()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DEd25519.java228 return new BigInteger[] {p[X].multiply(p[Z].modInverse(Ed25519_P)).mod(Ed25519_P), // x = X / Z in toAffine()
229 p[Y].multiply(p[Z].modInverse(Ed25519_P)).mod(Ed25519_P)}; // y = Y / Z in toAffine()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECFieldElement.java202 return new Fp(q, r, modMult(x, modInverse(b.toBigInteger()))); in divide()
234 return new Fp(q, r, modInverse(x)); in invert()
418 protected BigInteger modInverse(BigInteger x) in modInverse() method in ECFieldElement.Fp
827 return new ECFieldElement.F2m(this.m, this.ks, this.x.modInverse(m, ks)); in invert()
DTnaf.java521 BigInteger u1invert = us[1].modInverse(twoToW); in getTw()
DECCurve.java748 return new LongArray(x).modInverse(m, ks).toBigInteger();
DLongArray.java2022 public LongArray modInverse(int m, int[] ks) in modInverse() method in LongArray
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DECFieldElement.java212 return new Fp(q, r, modMult(x, modInverse(b.toBigInteger()))); in divide()
244 return new Fp(q, r, modInverse(x)); in invert()
428 protected BigInteger modInverse(BigInteger x) in modInverse() method in ECFieldElement.Fp
841 return new ECFieldElement.F2m(this.m, this.ks, this.x.modInverse(m, ks)); in invert()
DTnaf.java522 BigInteger u1invert = us[1].modInverse(twoToW); in getTw()
DECCurve.java760 return new LongArray(x).modInverse(m, ks).toBigInteger();
DLongArray.java2023 public LongArray modInverse(int m, int[] ks) in modInverse() method in LongArray
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRSABlindedEngine.java112 BigInteger rInv = r.modInverse(m); in processBlock()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DRSABlindedEngine.java114 BigInteger rInv = r.modInverse(m); in processBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DECDomainParameters.java86 hInv = h.modInverse(n); in getHInv()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DECDomainParameters.java90 hInv = h.modInverse(n); in getHInv()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEcdsaTest.java595 BigInteger k = x.multiply(r).add(h).multiply(s.modInverse(n)).mod(n); in extractK()
DDsaTest.java758 BigInteger k = x.multiply(r).add(h).multiply(s.modInverse(q)).mod(q); in extractK()
/external/v8/benchmarks/
Dcrypto.js1330 BigInteger.prototype.modInverse = bnModInverse; method in BigInteger
1618 this.d = ee.modInverse(phi);
1621 this.coeff = this.q.modInverse(this.p);