Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/security/spec/
DRSAPrivateKeySpec.java47 private final BigInteger modulus; field in RSAPrivateKeySpec
57 public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) { in RSAPrivateKeySpec() argument
58 this(modulus, privateExponent, null); in RSAPrivateKeySpec()
69 public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent, in RSAPrivateKeySpec() argument
71 this.modulus = modulus; in RSAPrivateKeySpec()
82 return this.modulus; in getModulus()
DRSAPublicKeySpec.java47 private final BigInteger modulus; field in RSAPublicKeySpec
57 public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent) { in RSAPublicKeySpec() argument
58 this(modulus, publicExponent, null); in RSAPublicKeySpec()
69 public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, in RSAPublicKeySpec() argument
71 this.modulus = modulus; in RSAPublicKeySpec()
83 return this.modulus; in getModulus()
DRSAMultiPrimePrivateCrtKeySpec.java85 public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, in RSAMultiPrimePrivateCrtKeySpec() argument
94 this(modulus, publicExponent, privateExponent, primeP, primeQ, in RSAMultiPrimePrivateCrtKeySpec()
127 public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, in RSAMultiPrimePrivateCrtKeySpec() argument
137 super(modulus, privateExponent, keyParams); in RSAMultiPrimePrivateCrtKeySpec()
138 Objects.requireNonNull(modulus, in RSAMultiPrimePrivateCrtKeySpec()
DRSAPrivateCrtKeySpec.java69 public RSAPrivateCrtKeySpec(BigInteger modulus, in RSAPrivateCrtKeySpec() argument
77 this(modulus, publicExponent, privateExponent, primeP, primeQ, in RSAPrivateCrtKeySpec()
97 public RSAPrivateCrtKeySpec(BigInteger modulus, in RSAPrivateCrtKeySpec() argument
106 super(modulus, privateExponent, keyParams); 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/annotations/flagged_api/java/security/spec/
DRSAPublicKeySpec.annotated.java32 public RSAPublicKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExponent) { throw … in RSAPublicKeySpec() argument
35 public RSAPublicKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.sec… in RSAPublicKeySpec() argument
DRSAPrivateKeySpec.annotated.java32 public RSAPrivateKeySpec(java.math.BigInteger modulus, java.math.BigInteger privateExponent) { thro… in RSAPrivateKeySpec() argument
35 public RSAPrivateKeySpec(java.math.BigInteger modulus, java.math.BigInteger privateExponent, java.s… in RSAPrivateKeySpec() argument
DRSAPrivateCrtKeySpec.annotated.java32 public RSAPrivateCrtKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java… in RSAPrivateCrtKeySpec() argument
35 public RSAPrivateCrtKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java… in RSAPrivateCrtKeySpec() argument
DRSAMultiPrimePrivateCrtKeySpec.annotated.java32 public RSAMultiPrimePrivateCrtKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExpo… in RSAMultiPrimePrivateCrtKeySpec() argument
35 public RSAMultiPrimePrivateCrtKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExpo… in RSAMultiPrimePrivateCrtKeySpec() argument
/libcore/ojluni/src/main/java/java/util/
DArrayDeque.java224 static final int inc(int i, int modulus) { in inc() argument
225 if (++i >= modulus) i = 0; in inc()
233 static final int dec(int i, int modulus) { in dec() argument
234 if (--i < 0) i = modulus - 1; in dec()
243 static final int inc(int i, int distance, int modulus) { in inc() argument
244 if ((i += distance) - modulus >= 0) i -= modulus; in inc()
255 static final int sub(int i, int j, int modulus) { in sub() argument
256 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()