/external/bouncycastle/src/main/java/org/bouncycastle/jce/spec/ |
ECPrivateKeySpec.java | 3 import java.math.BigInteger; 11 private BigInteger d; 20 BigInteger d, 31 public BigInteger getD()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
DHPrivateKeySpecTest.java | 25 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 | 25 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/ |
DHParameters.java | 5 import java.math.BigInteger; 13 private BigInteger g; 14 private BigInteger p; 15 private BigInteger q; 16 private BigInteger j; 33 BigInteger p, 34 BigInteger g) 40 BigInteger p, 41 BigInteger g, 42 BigInteger q [all...] |
DSAParameters.java | 3 import java.math.BigInteger; 10 private BigInteger g; 11 private BigInteger q; 12 private BigInteger p; 16 BigInteger p, 17 BigInteger q, 18 BigInteger g) 26 BigInteger p, 27 BigInteger q, 28 BigInteger g [all...] |
/libcore/luni/src/test/java/tests/security/interfaces/ |
RSAMultiPrimePrivateCrtKeyTest.java | 21 import java.math.BigInteger; 33 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE), 34 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE), 35 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE [all...] |
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
BigIntegerDivideTest.java | 24 import java.math.BigInteger; 27 * Class: java.math.BigInteger 39 BigInteger aNumber = new BigInteger(aSign, aBytes); 40 BigInteger bNumber = new BigInteger(bSign, bBytes); 54 BigInteger aNumber = new BigInteger(aSign, aBytes); 55 BigInteger bNumber = BigInteger.ZERO [all...] |
BigIntegerAndTest.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.and(bNumber); 60 BigInteger aNumber = new BigInteger(aSign, aBytes); 61 BigInteger bNumber = new BigInteger(bSign, bBytes) [all...] |
BigIntegerOrTest.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.or(bNumber); 60 BigInteger aNumber = new BigInteger(aSign, aBytes); 61 BigInteger bNumber = new BigInteger(bSign, bBytes) [all...] |
BigIntegerHashCodeTest.java | 23 import java.math.BigInteger; 28 * Class: java.math.BigInteger 38 BigInteger aNumber1 = new BigInteger(value1); 39 BigInteger aNumber2 = new BigInteger(value2); 56 BigInteger aNumber1 = new BigInteger(value1); 57 BigInteger aNumber2 = new BigInteger(value2) [all...] |
BigIntegerToStringTest.java | 23 import java.math.BigInteger; 28 * Class: java.math.BigInteger 38 BigInteger aNumber = new BigInteger(value, radix); 49 BigInteger aNumber = new BigInteger(value, radix); 60 BigInteger aNumber = new BigInteger(value, radix); 71 BigInteger aNumber = new BigInteger(value, radix) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
EllipticCurveTest.java | 20 import java.math.BigInteger; 36 * Test #1 for <code>EllipticCurve(ECField, BigInteger, BigInteger, byte[])</code> 44 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); 45 BigInteger a = BigInteger.ONE; 46 BigInteger b = BigInteger.valueOf(19L); 53 a = BigInteger.ZERO; 54 b = BigInteger.valueOf(23L) [all...] |
RSAOtherPrimeInfoTest.java | 24 import java.math.BigInteger; 44 * Test #1 for <code>RSAOtherPrimeInfo(BigInteger,BigInteger,BigInteger)</code> ctor 50 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), 51 BigInteger.valueOf(2L), 52 BigInteger.valueOf(3L)); 57 * Test #2 for <code>RSAOtherPrimeInfo(BigInteger,BigInteger,BigInteger)</code> cto [all...] |
/libcore/luni/src/test/java/tests/security/spec/ |
EllipticCurveTest.java | 22 import java.math.BigInteger; 36 * Test #1 for <code>EllipticCurve(ECField, BigInteger, BigInteger, byte[])</code> 44 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); 45 BigInteger a = BigInteger.ONE; 46 BigInteger b = BigInteger.valueOf(19L); 53 a = BigInteger.ZERO; 54 b = BigInteger.valueOf(23L) [all...] |
RSAOtherPrimeInfoTest.java | 27 import java.math.BigInteger; 37 * Test #1 for <code>RSAOtherPrimeInfo(BigInteger,BigInteger,BigInteger)</code> ctor 43 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), 44 BigInteger.valueOf(2L), 45 BigInteger.valueOf(3L)); 50 * Test #2 for <code>RSAOtherPrimeInfo(BigInteger,BigInteger,BigInteger)</code> cto [all...] |
RSAPublicKeySpecTest.java | 27 import java.math.BigInteger; 44 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), 45 BigInteger.valueOf(3L)); 68 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), 69 BigInteger.valueOf(3L)); 70 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus())); 79 new RSAPublicKeySpec(BigInteger.valueOf(3L), 80 BigInteger.valueOf(1234567890L)); 81 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent()));
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/ |
DHParametersHelper.java | 3 import java.math.BigInteger; 17 private static final BigInteger ONE = BigInteger.valueOf(1); 18 private static final BigInteger TWO = BigInteger.valueOf(2); 21 * Finds a pair of prime BigInteger's {p, q: p = 2q + 1} 25 static BigInteger[] generateSafePrimes(int size, int certainty, SecureRandom random) 32 BigInteger p, q; 40 q = new BigInteger(qLength, 2, random); 56 return new BigInteger[] { p, q } [all...] |
DHKeyGeneratorHelper.java | 3 import java.math.BigInteger; 13 private static final BigInteger ONE = BigInteger.valueOf(1); 14 private static final BigInteger TWO = BigInteger.valueOf(2); 20 BigInteger calculatePrivate(DHParameters dhParams, SecureRandom random) 22 BigInteger p = dhParams.getP(); 27 return new BigInteger(limit, random).setBit(limit - 1); 30 BigInteger min = TWO; 37 BigInteger max = p.subtract(TWO) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/ |
RSAMultiPrimePrivateCrtKeyTest.java | 25 import java.math.BigInteger; 57 public BigInteger getModulus() { 60 public BigInteger getPrivateExponent() { 63 public BigInteger getCrtCoefficient() { 69 public BigInteger getPrimeP() { 72 public BigInteger getPrimeQ() { 75 public BigInteger getPrimeExponentP() { 78 public BigInteger getPrimeExponentQ() { 81 public BigInteger getPublicExponent() {
|
RSAPrivateCrtKeyTest.java | 25 import java.math.BigInteger; 67 public BigInteger getCrtCoefficient() { 70 public BigInteger getPrimeP() { 73 public BigInteger getPrimeQ() { 76 public BigInteger getPrimeExponentP() { 79 public BigInteger getPrimeExponentQ() { 82 public BigInteger getPublicExponent() { 85 public BigInteger getModulus() { 88 public BigInteger getPrivateExponent() {
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigIntegerToStringTest.java | 24 import java.math.BigInteger; 32 BigInteger bi = new BigInteger(s); 39 BigInteger bi = new BigInteger(s); 46 BigInteger bi = new BigInteger(s); 54 BigInteger bi = BigInteger.valueOf(l); 62 BigInteger bi = BigInteger.valueOf(l) [all...] |
/external/apache-harmony/math/src/test/java/tests/api/java/math/ |
BigIntegerTest.java | 20 import java.math.BigInteger; 25 BigInteger minusTwo = new BigInteger("-2", 10); 27 BigInteger minusOne = new BigInteger("-1", 10); 29 BigInteger zero = new BigInteger("0", 10); 31 BigInteger one = new BigInteger("1", 10); 33 BigInteger two = new BigInteger("2", 10) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
ECParameterSpec_ImplTest.java | 24 import java.math.BigInteger; 48 * Test #1 for <code>ECParameterSpec(EllipticCurve, ECPoint, BigInteger, int)</code> constructor<br> 56 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), 57 BigInteger.ZERO, 58 BigInteger.valueOf(4L)); 59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); 60 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10); 64 * Test #2 for <code>ECParameterSpec(EllipticCurve, ECPoint, BigInteger, int)</code> constructor<br> 73 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
ASN1Enumerated.java | 3 import java.math.BigInteger; 13 public ASN1Enumerated(BigInteger value)
|
ASN1Integer.java | 3 import java.math.BigInteger; 13 public ASN1Integer(BigInteger value)
|