Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/security/spec/
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()
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()
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/java/util/
DArrayDeque.java225 static final int inc(int i, int modulus) { in inc() argument
226 if (++i >= modulus) i = 0; in inc()
234 static final int dec(int i, int modulus) { in dec() argument
235 if (--i < 0) i = modulus - 1; in dec()
244 static final int inc(int i, int distance, int modulus) { in inc() argument
245 if ((i += distance) - modulus >= 0) i -= modulus; in inc()
256 static final int sub(int i, int j, int modulus) { in sub() argument
257 if ((i -= j) < 0) i += modulus; in sub()
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java144 static final int inc(int i, int modulus) { in inc() argument
145 if (++i >= modulus) i = 0; in inc()
153 static final int dec(int i, int modulus) { in dec() argument
154 if (--i < 0) i = modulus - 1; in dec()