/libcore/luni/src/test/java/tests/security/interfaces/ |
Util.java | 17 import java.math.BigInteger; 33 static final BigInteger P = new BigInteger( 44 static final BigInteger Q = new BigInteger( 50 static final BigInteger G = new BigInteger( 61 static final BigInteger RND_RET = new BigInteger("10"); 67 BigInteger.valueOf(3233), BigInteger.valueOf(17) [all...] |
/libcore/luni/src/main/java/java/security/spec/ |
RSAOtherPrimeInfo.java | 20 import java.math.BigInteger; 32 private final BigInteger prime; 34 private final BigInteger primeExponent; 36 private final BigInteger crtCoefficient; 49 public RSAOtherPrimeInfo(BigInteger prime, 50 BigInteger primeExponent, BigInteger crtCoefficient) { 70 public final BigInteger getCrtCoefficient() { 79 public final BigInteger getPrime() { 88 public final BigInteger getExponent() [all...] |
RSAMultiPrimePrivateCrtKeySpec.java | 20 import java.math.BigInteger; 32 private final BigInteger publicExponent; 34 private final BigInteger primeP; 36 private final BigInteger primeQ; 38 private final BigInteger primeExponentP; 40 private final BigInteger primeExponentQ; 42 private final BigInteger crtCoefficient; 74 BigInteger modulus, 75 BigInteger publicExponent, 76 BigInteger privateExponent [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
EllipticCurve_ImplTest.java | 24 import java.math.BigInteger; 46 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 47 BigInteger.ONE, 48 BigInteger.valueOf(19L)); 52 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 53 BigInteger.ONE, 54 BigInteger.valueOf(19L)); 55 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(31L)), 56 BigInteger.valueOf(1L), 57 BigInteger.valueOf(19L)) [all...] |
ECPrivateKeySpec_ImplTest.java | 24 import java.math.BigInteger; 49 * Test #1 for <code>ECPrivateKeySpec(BigInteger, ECParameterSpec)</code> constructor<br> 57 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 58 BigInteger.ZERO, 59 BigInteger.valueOf(4L)); 60 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 61 new ECPrivateKeySpec(BigInteger.ZERO, 62 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); 67 * Test #2 for <code>ECPrivateKeySpec(BigInteger, ECParameterSpec)</code> constructor<br> [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
DSAPrivateKeySpecTest.java | 24 import java.math.BigInteger; 49 new BigInteger("1"), 50 new BigInteger("2"), 51 new BigInteger("3"), 52 new BigInteger("4")); 62 new BigInteger("1"), 63 new BigInteger("2"), 64 new BigInteger("3"), 65 new BigInteger("4")); 75 new BigInteger("1") [all...] |
DSAPublicKeySpecTest.java | 24 import java.math.BigInteger; 49 new BigInteger("1"), // y 50 new BigInteger("2"), // p 51 new BigInteger("3"), // q 52 new BigInteger("4"));// g 62 new BigInteger("1"), // y 63 new BigInteger("2"), // p 64 new BigInteger("3"), // q 65 new BigInteger("4"));// g 75 new BigInteger("1"), // [all...] |
DSAParameterSpecTest.java | 24 import java.math.BigInteger; 49 new BigInteger("1"), 50 new BigInteger("2"), 51 new BigInteger("3")); 61 new BigInteger("1"), 62 new BigInteger("2"), 63 new BigInteger("3")); 73 new BigInteger("1"), 74 new BigInteger("2"), 75 new BigInteger("3")) [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/ |
RSAMultiPrimePrivateCrtKeyImpl.java | 21 import java.math.BigInteger; 31 private BigInteger crtCoefficient = null; 32 private BigInteger publicExponent = null; 33 private BigInteger primeExponentP = null; 34 private BigInteger primeExponentQ = null; 35 private BigInteger primeP = null; 36 private BigInteger primeQ = null; 39 public RSAMultiPrimePrivateCrtKeyImpl(BigInteger publicExp, 40 BigInteger primeExpP, 41 BigInteger primeExpQ [all...] |
/libcore/luni/src/test/java/tests/security/spec/ |
DSAParameterSpecTest.java | 27 import java.math.BigInteger; 42 new BigInteger("1"), 43 new BigInteger("2"), 44 new BigInteger("3")); 54 new BigInteger("1"), 55 new BigInteger("2"), 56 new BigInteger("3")); 66 new BigInteger("1"), 67 new BigInteger("2"), 68 new BigInteger("3")) [all...] |
/libcore/luni/src/main/java/javax/crypto/spec/ |
DHParameterSpec.java | 20 import java.math.BigInteger; 28 private final BigInteger p; 29 private final BigInteger g; 41 public DHParameterSpec(BigInteger p, BigInteger g) { 59 public DHParameterSpec(BigInteger p, BigInteger g, int l) { 70 public BigInteger getP() { 79 public BigInteger getG() {
|
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/ |
ZTauElement.java | 3 import java.math.BigInteger; 18 public final BigInteger u; 23 public final BigInteger v; 32 public ZTauElement(BigInteger u, BigInteger v)
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigIntegerDivideTest.java | 24 import java.math.BigInteger; 37 BigInteger aNumber = new BigInteger(aSign, aBytes); 38 BigInteger bNumber = new BigInteger(bSign, bBytes);
|
OldBigIntegerConstructorsTest.java | 24 import java.math.BigInteger; 30 * java.math.BigInteger#BigInteger(java.lang.String) 34 BigInteger bi_s = new BigInteger(s); 35 assertTrue("the BigInteger value is not initialized properly", bi_s.intValue() == 0); 36 assertEquals("the BigInteger value is not initialized properly", bi_s.toString(), s); 40 * java.math.BigInteger#BigInteger(java.lang.String) 44 BigInteger bi_s = new BigInteger(s) [all...] |
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
BigIntegerModPowTest.java | 24 import java.math.BigInteger; 27 * Class: java.math.BigInteger 41 BigInteger aNumber = new BigInteger(aSign, aBytes); 42 BigInteger exp = new BigInteger(eSign, eBytes); 43 BigInteger modulus = new BigInteger(mSign, mBytes); 51 BigInteger.ZERO.modPow(new BigInteger("-1"), new BigInteger("10")) [all...] |
BigIntegerCompareTest.java | 24 import java.math.BigInteger; 27 * Class: java.math.BigInteger 38 BigInteger aNumber = new BigInteger(aSign, aBytes); 39 BigInteger result = aNumber.abs(); 55 BigInteger aNumber = new BigInteger(aSign, aBytes); 56 BigInteger result = aNumber.abs(); 66 * compareTo(BigInteger a). 75 BigInteger aNumber = new BigInteger(aSign, aBytes) [all...] |
BigIntegerAddTest.java | 24 import java.math.BigInteger; 27 * Class: java.math.BigInteger 40 BigInteger aNumber = new BigInteger(aSign, aBytes); 41 BigInteger bNumber = new BigInteger(bSign, bBytes); 42 BigInteger result = aNumber.add(bNumber); 60 BigInteger aNumber = new BigInteger(aSign, aBytes); 61 BigInteger bNumber = new BigInteger(bSign, bBytes) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x9/ |
X962NamedCurves.java | 8 import java.math.BigInteger; 23 new BigInteger("6277101735386680763835789423207666416083908700390324961279"), 24 new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16), 25 new BigInteger("64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1", 16)); 31 new BigInteger("ffffffffffffffffffffffff99def836146bc9b1b4d22831", 16), 32 BigInteger.valueOf(1), 42 new BigInteger("6277101735386680763835789423207666416083908700390324961279"), 43 new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16), 44 new BigInteger("cc22d6dfb95c6b25e49c0d6364a4e5980c393aa21668d953", 16)); 50 new BigInteger("fffffffffffffffffffffffe5fb1a724dc80418648d8dd31", 16) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/ |
BasicAgreement.java | 3 import java.math.BigInteger; 20 public BigInteger calculateAgreement(CipherParameters pubKey);
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
DHPrivateKeySpecTest.java | 24 import java.math.BigInteger; 42 BigInteger[] xs = {new BigInteger("-1000000000000"), BigInteger.ZERO, 43 BigInteger.ONE, new BigInteger("1000000000000")}; 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, 45 BigInteger.ONE, new BigInteger("1000000000000")} [all...] |
DHPublicKeySpecTest.java | 24 import java.math.BigInteger; 42 BigInteger[] ys = {new BigInteger("-1000000000000"), BigInteger.ZERO, 43 BigInteger.ONE, new BigInteger("1000000000000")}; 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, 45 BigInteger.ONE, new BigInteger("1000000000000")} [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/ |
DSAPrivateKeyParameters.java | 3 import java.math.BigInteger; 8 private BigInteger x; 11 BigInteger x, 19 public BigInteger getX()
|
DSAPublicKeyParameters.java | 3 import java.math.BigInteger; 8 private BigInteger y; 11 BigInteger y, 19 public BigInteger getY()
|
ECPrivateKeyParameters.java | 3 import java.math.BigInteger; 8 BigInteger d; 11 BigInteger d, 18 public BigInteger getD()
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
DSAEncoder.java | 3 import java.math.BigInteger; 8 byte[] encode(BigInteger r, BigInteger s) 11 BigInteger[] decode(byte[] sig)
|