Searched refs:modulus (Results 1 – 7 of 7) sorted by relevance
/libcore/ojluni/src/main/java/java/security/spec/ |
D | RSAPrivateKeySpec.java | 46 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()
|
D | RSAPublicKeySpec.java | 46 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()
|
D | RSAMultiPrimePrivateCrtKeySpec.java | 89 public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, in RSAMultiPrimePrivateCrtKeySpec() argument 98 super(modulus, privateExponent); in RSAMultiPrimePrivateCrtKeySpec() 99 if (modulus == null) { in RSAMultiPrimePrivateCrtKeySpec()
|
D | RSAPrivateCrtKeySpec.java | 73 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/ |
D | BigIntegerModPowTest.java | 43 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/luni/src/main/java/java/math/ |
D | BigInteger.java | 990 @NonNull public BigInteger modPow(@NonNull BigInteger exponent, @NonNull BigInteger modulus) { in modPow() argument 991 if (modulus.signum() <= 0) { in modPow() 996 return ONE.mod(modulus); in modPow() 998 BigInteger base = exponentSignum < 0 ? modInverse(modulus) : this; in modPow() 999 … return new BigInteger(BigInt.modExp(base.getBigInt(), exponent.getBigInt(), modulus.getBigInt())); in modPow() 1018 return new BigInteger(BigInt.modulus(getBigInt(), m.getBigInt()));
|
D | BigInt.java | 315 static BigInt modulus(BigInt a, BigInt m) { in modulus() method in BigInt
|