/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/ |
ECPrivateKeyTest.java | 25 import java.math.BigInteger; 66 public BigInteger getS() {
|
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/ |
ECFieldElement.java | 3 import java.math.BigInteger; 10 public abstract BigInteger toBigInteger(); 29 BigInteger x; 31 BigInteger q; 33 public Fp(BigInteger q, BigInteger x) 45 public BigInteger toBigInteger() 65 public BigInteger getQ() 129 BigInteger qMinusOne = q.subtract(ECConstants.ONE); 131 BigInteger legendreExponent = qMinusOne.shiftRight(1) [all...] |
WNafMultiplier.java | 3 import java.math.BigInteger; 23 public byte[] windowNaf(byte width, BigInteger k) 33 // 2^width as short and BigInteger 35 BigInteger pow2wBI = BigInteger.valueOf(pow2wB); 49 BigInteger remainder = k.mod(pow2wBI); 62 k = k.subtract(BigInteger.valueOf(wnaf[i])); 90 public ECPoint multiply(ECPoint p, BigInteger k, PreCompInfo preCompInfo)
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
InhibitAnyPolicy.java | 21 import java.math.BigInteger; 46 this.skipCerts = new BigInteger((byte[])
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
ServerKeyExchange.java | 21 import java.math.BigInteger; 36 final BigInteger par1; // rsa_modulus dh_p 39 final BigInteger par2; // rsa_exponent dh_g 42 final BigInteger par3; // dh_Ys 59 public ServerKeyExchange(BigInteger par1, BigInteger par2, BigInteger par3, 83 * Remove first byte if 0. Needed because BigInteger.toByteArray() sometimes 86 public static byte[] toUnsignedByteArray(BigInteger bi) { 113 par1 = new BigInteger(1, bytes1) [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
ServerKeyExchangeTest.java | 21 import java.math.BigInteger; 33 BigInteger rsa_mod = new BigInteger( 35 BigInteger rsa_exp = new BigInteger("65537"); 88 BigInteger dh_p = new BigInteger("1234567890"); 89 BigInteger dh_g = new BigInteger("987654321"); 90 BigInteger dh_Ys = new BigInteger("123123123") [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x9/ |
X9FieldElement.java | 3 import java.math.BigInteger; 26 public X9FieldElement(BigInteger p, ASN1OctetString s) 28 this(new ECFieldElement.Fp(p, new BigInteger(1, s.getOctets()))); 33 this(new ECFieldElement.F2m(m, k1, k2, k3, new BigInteger(1, s.getOctets())));
|
X9IntegerConverter.java | 6 import java.math.BigInteger; 23 BigInteger s,
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/ |
ECKeyPairGenerator.java | 3 import java.math.BigInteger; 37 BigInteger n = params.getN(); 39 BigInteger d; 43 d = new BigInteger(nBitLength, random);
|
RSAKeyPairGenerator.java | 10 import java.math.BigInteger; 18 private static final BigInteger ONE = BigInteger.valueOf(1); 30 BigInteger p, q, n, d, e, pSub1, qSub1, phi; 50 p = new BigInteger(pbitlength, 1, param.getRandom()); 78 q = new BigInteger(qbitlength, 1, param.getRandom()); 137 BigInteger dP, dQ, qInv;
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
AlgorithmParameterGenerator3Test.java | 20 import java.math.BigInteger; 160 DSAParameterSpec spec = new DSAParameterSpec(BigInteger.ONE, 161 BigInteger.ONE, BigInteger.ONE); 181 DSAParameterSpec spec = new DSAParameterSpec(BigInteger.ONE, 182 BigInteger.ONE, BigInteger.ONE);
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/ |
GeneralSubtree.java | 3 import java.math.BigInteger; 34 private static final BigInteger ZERO = BigInteger.valueOf(0); 113 BigInteger minimum, 114 BigInteger maximum) 164 public BigInteger getMinimum() 174 public BigInteger getMaximum()
|
/libcore/luni/src/main/java/java/security/spec/ |
ECFieldF2m.java | 20 import java.math.BigInteger; 39 private final BigInteger rp; 77 public ECFieldF2m(int m, BigInteger rp) { 100 BigInteger rpTmp = rp.clearBit(0); 161 BigInteger rpTmp = BigInteger.ONE.setBit(this.m); 252 public BigInteger getReductionPolynomial() {
|
/libcore/luni/src/test/java/libcore/java/text/ |
NumberFormatTest.java | 19 import java.math.BigInteger; 45 // any BigInteger with a bitLength strictly less than 64. 61 assertEquals("long", nf.format(BigInteger.valueOf(Long.MAX_VALUE))); 62 assertEquals("double", nf.format(BigInteger.valueOf(Long.MAX_VALUE).add(BigInteger.ONE))); 63 assertEquals("long", nf.format(BigInteger.valueOf(Long.MIN_VALUE))); 64 assertEquals("double", nf.format(BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE)));
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
DSAKeyPairGeneratorTest.java | 21 import java.math.BigInteger; 32 private final BigInteger p = new BigInteger("4"); 33 private final BigInteger q = BigInteger.TEN; 34 private final BigInteger g = BigInteger.ZERO;
|
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
BigDecimalConvertTest.java | 25 import java.math.BigInteger; 203 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 217 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 226 * Convert a positive BigDecimal to BigInteger 230 BigInteger bNumber = new BigInteger("123809648392384754573567356745735635678902957849027687"); 232 BigInteger result = aNumber.toBigInteger(); 237 * Convert a positive BigDecimal to BigInteger 241 BigInteger bNumber = new BigInteger("123809648392384754573567356745735635678902957849") [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
BerInputStreamTest.java | 26 import java.math.BigInteger; 54 { new byte[] { 0x30, (byte) 0x81, 0x01 }, BigInteger.valueOf(1) }, 57 BigInteger.valueOf(0xFF) }, 60 BigInteger.valueOf(0x0101) }, 63 BigInteger.valueOf(0xFFFF) }, 67 (byte) 0xFF }, BigInteger.valueOf(0x0FFFFF) }, 72 BigInteger.valueOf(0xFFFFFF) }, 77 BigInteger.valueOf(0xFFFFFF) }, }; 85 int expected = ((BigInteger) testcase[i][1]).intValue();
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
Signature.java | 4 import java.math.BigInteger; 256 BigInteger r, 257 BigInteger s) 268 public BigInteger[] decode( 273 BigInteger[] sig = new BigInteger[2]; 286 BigInteger r, 287 BigInteger s) 310 private byte[] makeUnsigned(BigInteger val) 326 public BigInteger[] decode [all...] |
/libcore/luni/src/main/java/java/math/ |
BitLevel.java | 22 * {@link BigInteger}. The operations are: 40 /** @see BigInteger#bitLength() */ 41 static int bitLength(BigInteger val) { 61 /** @see BigInteger#bitCount() */ 62 static int bitCount(BigInteger val) { 91 static boolean testBit(BigInteger val, int n) { 98 * Check if there are 1s in the lowest bits of this BigInteger 126 static BigInteger shiftLeftOneBit(BigInteger source) { 132 return new BigInteger(source.sign, resLen, resDigits) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
SHA1withDSA_SignatureImpl.java | 20 import java.math.BigInteger; 80 BigInteger p, q, x; 95 if (p.compareTo(BigInteger.valueOf(1)) != 1 || n < 512 || n > 1024 || (n & 077) != 0) { 123 BigInteger p, q, y; 138 if (p.compareTo(BigInteger.valueOf(1)) != 1 || n1 < 512 || n1 > 1024 || (n1 & 077) != 0) { 168 * ASN1 representation for two BigInteger objects 185 BigInteger r = null; 186 BigInteger s = null; 187 BigInteger k = null; 190 BigInteger p, q, g, x [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/sec/ |
ECPrivateKeyStructure.java | 3 import java.math.BigInteger; 36 BigInteger key) 49 BigInteger key, 56 BigInteger key, 80 public BigInteger getKey() 84 return new BigInteger(1, octs.getOctets());
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JCERSAPrivateCrtKey.java | 11 import java.math.BigInteger; 24 private BigInteger publicExponent; 25 private BigInteger primeP; 26 private BigInteger primeQ; 27 private BigInteger primeExponentP; 28 private BigInteger primeExponentQ; 29 private BigInteger crtCoefficient; 140 public BigInteger getPublicExponent() 150 public BigInteger getPrimeP() 160 public BigInteger getPrimeQ( [all...] |
JCEDHPublicKey.java | 6 import java.math.BigInteger; 28 private BigInteger y; 54 BigInteger y, 134 public BigInteger getY() 154 if (l.getValue().compareTo(BigInteger.valueOf(p.getValue().bitLength())) > 0) 166 this.y = (BigInteger)in.readObject(); 167 this.dhSpec = new DHParameterSpec((BigInteger)in.readObject(), (BigInteger)in.readObject(), in.readInt());
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/ |
X509CRLSelectorTest.java | 25 import java.math.BigInteger; 58 private BigInteger crlNumber = null; 70 public TestCRL(BigInteger crlNumber) { 79 public void setCrlNumber(BigInteger crlNumber) { 150 public X509CRLEntry getRevokedCertificate(BigInteger serialNumber) { 350 * setMinCRLNumber(BigInteger minCRL) method testing. 357 BigInteger minCRL = new BigInteger("10000"); 366 selector.setMinCRLNumber(new BigInteger("10001")); 372 * setMaxCRLNumber(BigInteger maxCRL) method testing [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/agreement/ |
ECDHBasicAgreement.java | 3 import java.math.BigInteger; 37 public BigInteger calculateAgreement(
|