Home
last modified time | relevance | path

Searched refs:modulus (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/security/spec/
DRSAPublicKeySpec.java46 private BigInteger modulus; field in RSAPublicKeySpec
55 public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent) { in RSAPublicKeySpec() argument
56 this.modulus = modulus; in RSAPublicKeySpec()
66 return this.modulus; in getModulus()
DRSAPrivateKeySpec.java46 private BigInteger modulus; field in RSAPrivateKeySpec
55 public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) { in RSAPrivateKeySpec() argument
56 this.modulus = modulus; in RSAPrivateKeySpec()
66 return this.modulus; in getModulus()
DRSAMultiPrimePrivateCrtKeySpec.java89 public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, in RSAMultiPrimePrivateCrtKeySpec() argument
98 super(modulus, privateExponent); in RSAMultiPrimePrivateCrtKeySpec()
99 if (modulus == null) { in RSAMultiPrimePrivateCrtKeySpec()
DRSAPrivateCrtKeySpec.java73 public RSAPrivateCrtKeySpec(BigInteger modulus, in RSAPrivateCrtKeySpec() argument
81 super(modulus, privateExponent); in RSAPrivateCrtKeySpec()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerModPowTest.java43 BigInteger modulus = new BigInteger(mSign, mBytes); in testModPowException() local
45 aNumber.modPow(exp, modulus); in testModPowException()
71 BigInteger modulus = new BigInteger(mSign, mBytes); in testModPowPosExp() local
72 BigInteger result = aNumber.modPow(exp, modulus); in testModPowPosExp()
94 BigInteger modulus = new BigInteger(mSign, mBytes); in testModPowNegExp() local
95 BigInteger result = aNumber.modPow(exp, modulus); in testModPowNegExp()
136 BigInteger modulus = new BigInteger(mSign, mBytes); in testmodInverseException() local
138 aNumber.modInverse(modulus); in testmodInverseException()
153 BigInteger modulus = new BigInteger(mSign, mBytes); in testmodInverseNonInvertible() local
155 aNumber.modInverse(modulus); in testmodInverseNonInvertible()
[all …]
/libcore/ojluni/src/main/java/sun/security/ssl/
DDHCrypt.java81 private BigInteger modulus; // P (aka N) field in DHCrypt
107 modulus = spec.getP(); in DHCrypt()
121 DHCrypt(BigInteger modulus, BigInteger base, SecureRandom random) { in DHCrypt() argument
122 this.modulus = modulus; in DHCrypt()
126 DHParameterSpec params = new DHParameterSpec(modulus, base); in DHCrypt()
159 return modulus; in getModulus()
195 new DHPublicKeySpec(peerPublicValue, modulus, base); in getAgreedSecret()
DJsseJce.java355 BigInteger modulus; in getRSAKeyLength() local
357 modulus = ((RSAPublicKey)key).getModulus(); in getRSAKeyLength()
360 modulus = spec.getModulus(); in getRSAKeyLength()
362 return modulus.bitLength(); in getRSAKeyLength()
/libcore/luni/src/main/java/java/math/
DBigInteger.java988 public BigInteger modPow(BigInteger exponent, BigInteger modulus) { in modPow() argument
989 if (modulus.signum() <= 0) { in modPow()
994 return ONE.mod(modulus); in modPow()
996 BigInteger base = exponentSignum < 0 ? modInverse(modulus) : this; in modPow()
997 … return new BigInteger(BigInt.modExp(base.getBigInt(), exponent.getBigInt(), modulus.getBigInt())); in modPow()
1016 return new BigInteger(BigInt.modulus(getBigInt(), m.getBigInt()));
DBigInt.java313 static BigInt modulus(BigInt a, BigInt m) { in modulus() method in BigInt