/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
BigDecimalArithmeticTest.java | 21 import java.math.BigInteger; 42 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 43 BigDecimal bNumber = new BigDecimal(new BigInteger(b), bScale); 59 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 60 BigDecimal bNumber = new BigDecimal(new BigInteger(b), bScale); 77 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 78 BigDecimal bNumber = new BigDecimal(new BigInteger(b), bScale); 94 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 95 BigDecimal bNumber = new BigDecimal(new BigInteger(b), bScale); 112 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale) [all...] |
BigDecimalConstructorsTest.java | 24 import java.math.BigInteger; 66 * new BigDecimal(BigInteger value) 70 BigInteger bA = new BigInteger(a); 76 new BigDecimal((BigInteger) null); 84 * new BigDecimal(BigInteger value, int scale) 88 BigInteger bA = new BigInteger(a); 96 * new BigDecimal(BigInteger value, MathContext) 100 BigInteger bA = new BigInteger(a) [all...] |
BigDecimalScaleOperationsTest.java | 37 BigDecimal aNumber = new BigDecimal(new BigInteger(a)); 48 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 59 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 70 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 80 BigInteger bNumber = new BigInteger(a); 92 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 117 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 133 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); 147 BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/ |
ECCurve.java | 3 import java.math.BigInteger; 15 public abstract ECFieldElement fromBigInteger(BigInteger x); 17 public abstract ECPoint createPoint(BigInteger x, BigInteger y, boolean withCompression); 38 BigInteger q; 41 public Fp(BigInteger q, BigInteger a, BigInteger b) 49 public BigInteger getQ() 59 public ECFieldElement fromBigInteger(BigInteger x [all...] |
SimpleBigDecimal.java | 3 import java.math.BigInteger; 8 * {@link java.math.BigInteger BigInteger} with a few digits on the right of 22 private final BigInteger bigInt; 34 public static SimpleBigDecimal getInstance(BigInteger value, int scale) 46 public SimpleBigDecimal(BigInteger bigInt, int scale) 94 public SimpleBigDecimal add(BigInteger b) 109 public SimpleBigDecimal subtract(BigInteger b) 121 public SimpleBigDecimal multiply(BigInteger b) 129 BigInteger dividend = bigInt.shiftLeft(scale) [all...] |
/libcore/luni/src/main/java/java/security/spec/ |
EllipticCurve.java | 20 import java.math.BigInteger; 32 private final BigInteger a; 35 private final BigInteger b; 59 public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) { 83 BigInteger p = ((ECFieldFp) this.field).getP(); 114 public EllipticCurve(ECField field, BigInteger a, BigInteger b) { 123 public BigInteger getA() { 132 public BigInteger getB() [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
DSAKeyFactoryImplTest.java | 22 import java.math.BigInteger; 67 static BigInteger publicP; 68 static BigInteger publicQ; 69 static BigInteger publicG; 70 static BigInteger publicY; 82 static BigInteger privateP; 83 static BigInteger privateQ; 84 static BigInteger privateG; 85 static BigInteger privateX; 144 public BigInteger getPrivateExponent() { return BigInteger.ZERO; [all...] |
/libcore/luni/src/main/java/java/math/ |
Logical.java | 21 * The library implements some logical operations over {@code BigInteger}. The 38 /** @see BigInteger#not() */ 39 static BigInteger not(BigInteger val) { 41 return BigInteger.MINUS_ONE; 43 if (val.equals(BigInteger.MINUS_ONE)) { 44 return BigInteger.ZERO; 61 return new BigInteger(-val.sign, i + 1, resDigits); 78 return new BigInteger(-val.sign, i, resDigits); 81 /** @see BigInteger#and(BigInteger) * [all...] |
Primality.java | 46 /** All {@code BigInteger} prime numbers with bit length lesser than 10 bits. */ 47 private static final BigInteger BIprimes[] = new BigInteger[primes.length]; 71 static {// To initialize the dual table of BigInteger primes 73 BIprimes[i] = BigInteger.valueOf(primes[i]); 83 * @see BigInteger#nextProbablePrime() 85 static BigInteger nextProbablePrime(BigInteger n) { 137 return new BigInteger(probPrime);
|
/libcore/luni/src/test/java/tests/security/spec/ |
ECFieldF2mTest.java | 27 import java.math.BigInteger; 68 final BigInteger rp; 91 final BigInteger rp, 162 new BigInteger("57406534763712726211641660058884099201115885104434760023882136841288313069618515692832974315825313495922298231949373138672355948043152766571296567808332659269564994572656140000344389574120022435714463495031743122390807731823194181973658513020233176985452498279081199404472314802811655824768082110985166340672084454492229252801189742403957029450467388250214501358353312915261004066118140645880633941658603299497698209063510889929202021079926591625770444716951045960277478891794836019580040978908928741972740865961716524153209532713803393514722581342474556943840519615081302148762454520131486413662191617"), 168 new BigInteger("114813069527425452423283320117768198402231770208869520047764273682576626139237031385665948631650626991844596463898746277344711896086305533142593135616665318539129989145312280000688779148240044871428926990063486244781615463646388363947317026040466353970904996558162398808944629605623311649536164221970332681364606313754094036473740741389411285817465477407288087941692709593079057904974473325399237449961796178150263073811552931156681807161003582337510008648338765664631815874608789366699668224806907571505750798647855797220056285479869767291137153732790597348308446887230584637235716444920907512810569735"), 180 new BigInteger("114813069527425452423283320117768198402231770208869520047764273682576626139237031385665948631650626991844596463898746277344711896086305533142593135616665318539129989145312280000688779148240044871428926990063486244781615463646388363947317026040466353970904996558162398808944629605623311649536164221970332681364606313754094036473740741389411285817465477407288087941692709593079057904974473325399237449961796178150263073811552931156681807161003582337510008648338765664631815874608789366699668224806907571505750798647855797220056285479869767291137153732790597348308446887230584637235716444920907512810569734"), 186 new BigInteger("5"), 192 new BigInteger("5"), 198 new BigInteger("5"), 204 new BigInteger("5") [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/ |
DSAParameter.java | 3 import java.math.BigInteger; 43 BigInteger p, 44 BigInteger q, 45 BigInteger g) 67 public BigInteger getP() 72 public BigInteger getQ() 77 public BigInteger getG()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/engines/ |
RSACoreEngine.java | 9 import java.math.BigInteger; 85 public BigInteger convertInput( 112 BigInteger res = new BigInteger(1, block); 122 BigInteger result) 161 public BigInteger processBlock(BigInteger input) 172 BigInteger p = crtKey.getP(); 173 BigInteger q = crtKey.getQ(); 174 BigInteger dP = crtKey.getDP() [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JCERSAPrivateKey.java | 16 import java.math.BigInteger; 26 private static BigInteger ZERO = BigInteger.valueOf(0); 28 protected BigInteger modulus; 29 protected BigInteger privateExponent; 58 public BigInteger getModulus() 63 public BigInteger getPrivateExponent() 132 this.modulus = (BigInteger)in.readObject(); 137 this.privateExponent = (BigInteger)in.readObject();
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/spec/ |
ECNamedCurveSpec.java | 3 import java.math.BigInteger; 59 BigInteger n) 70 BigInteger n) 81 BigInteger n, 82 BigInteger h) 93 BigInteger n, 94 BigInteger h) 105 BigInteger n, 106 BigInteger h,
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
DEREnumerated.java | 4 import java.math.BigInteger; 57 bytes = BigInteger.valueOf(value).toByteArray(); 61 BigInteger value) 72 public BigInteger getValue() 74 return new BigInteger(bytes);
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1Integer.java | 26 import java.math.BigInteger; 100 return new BigInteger((byte[]) decoded).intValue(); 104 * Converts decoded ASN.1 Integer to a BigInteger. 107 * @return decoded BigInteger value. 109 public static BigInteger toBigIntegerValue(Object decoded) { 110 return new BigInteger((byte[]) decoded); 120 return BigInteger.valueOf(value).toByteArray();
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/pkcs7/ |
SignerInfoTest.java | 22 import java.math.BigInteger; 37 BigInteger.TEN.toByteArray() }; 50 assertEquals(new BigInteger("10"), signerInfo.getSerialNumber());
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x9/ |
X9ECParameters.java | 13 import java.math.BigInteger; 23 private static final BigInteger ONE = BigInteger.valueOf(1); 28 private BigInteger n; 29 private BigInteger h; 59 BigInteger n) 67 BigInteger n, 68 BigInteger h) 76 BigInteger n, 77 BigInteger h [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/ |
DHBasicKeyPairGenerator.java | 11 import java.math.BigInteger; 35 BigInteger x = helper.calculatePrivate(dhp, param.getRandom()); 36 BigInteger y = helper.calculatePublic(dhp, x);
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/pkcs/ |
MacData.java | 3 import java.math.BigInteger; 18 private static final BigInteger ONE = BigInteger.valueOf(1); 22 BigInteger iterationCount; 63 this.iterationCount = BigInteger.valueOf(iterationCount); 76 public BigInteger getIterationCount()
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/ |
DHPrivateKeyTest.java | 29 import java.math.BigInteger; 70 public BigInteger getX() {
|
DHPublicKeyTest.java | 24 import java.math.BigInteger; 72 public BigInteger getY() {
|
PBEKeyTest.java | 24 import java.math.BigInteger; 69 public BigInteger getY() {
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/ |
DSAPrivateKeyTest.java | 25 import java.math.BigInteger; 69 public BigInteger getX() {
|
DSAPublicKeyTest.java | 25 import java.math.BigInteger; 68 public BigInteger getY() {
|