Home
last modified time | relevance | path

Searched refs:BigInteger (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DRSAMultiPrimePrivateCrtKeySpecTest.java24 import java.math.BigInteger;
40 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
41 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE),
42 new RSAOtherPrimeInfo(BigInteger.ONE, BigInteger.ONE, BigInteger.ONE)
73 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
74 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
75 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
76 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
77 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
78 BigInteger.ONE, in testRSAMultiPrimePrivateCrtKeySpec01()
[all …]
DRSAPrivateCrtKeySpecTest.java24 import java.math.BigInteger;
52 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
53 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
54 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
55 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
56 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
57 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
58 BigInteger.ONE, in testRSAPrivateCrtKeySpec01()
59 BigInteger.ONE); in testRSAPrivateCrtKeySpec01()
70 BigInteger.ONE, in testRSAPrivateCrtKeySpec02()
[all …]
DEllipticCurveTest.java20 import java.math.BigInteger;
43 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
44 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
45 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
52 a = BigInteger.ZERO; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
53 b = BigInteger.valueOf(23L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
59 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
60 a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
61 b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
78 BigInteger a = BigInteger.ONE; in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
[all …]
DECPointTest.java24 import java.math.BigInteger;
54 new ECPoint(BigInteger.ZERO, BigInteger.ZERO); in testECPoint01()
55 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(-23456L)); in testECPoint01()
56 new ECPoint(BigInteger.valueOf(123456L), BigInteger.valueOf(123456L)); in testECPoint01()
57 new ECPoint(BigInteger.valueOf(-56L), BigInteger.valueOf(234L)); in testECPoint01()
58 new ECPoint(BigInteger.valueOf(3456L), BigInteger.valueOf(-2344L)); in testECPoint01()
71 new ECPoint(null, BigInteger.ZERO); in testECPoint02()
79 new ECPoint(BigInteger.ZERO, null); in testECPoint02()
103 BigInteger x = BigInteger.valueOf(-23456L); in testGetAffineX01()
104 ECPoint p = new ECPoint(x, BigInteger.valueOf(23456L)); in testGetAffineX01()
[all …]
DDSAPublicKeySpecTest.java24 import java.math.BigInteger;
49 new BigInteger("1"), // y in testDSAPublicKeySpec()
50 new BigInteger("2"), // p in testDSAPublicKeySpec()
51 new BigInteger("3"), // q in testDSAPublicKeySpec()
52 new BigInteger("4"));// g in testDSAPublicKeySpec()
62 new BigInteger("1"), // y in testGetG()
63 new BigInteger("2"), // p in testGetG()
64 new BigInteger("3"), // q in testGetG()
65 new BigInteger("4"));// g in testGetG()
75 new BigInteger("1"), // y in testGetP()
[all …]
DDSAPrivateKeySpecTest.java24 import java.math.BigInteger;
49 new BigInteger("1"), in testDSAPrivateKeySpec()
50 new BigInteger("2"), in testDSAPrivateKeySpec()
51 new BigInteger("3"), in testDSAPrivateKeySpec()
52 new BigInteger("4")); in testDSAPrivateKeySpec()
62 new BigInteger("1"), in testGetG()
63 new BigInteger("2"), in testGetG()
64 new BigInteger("3"), in testGetG()
65 new BigInteger("4")); in testGetG()
75 new BigInteger("1"), in testGetP()
[all …]
DRSAOtherPrimeInfoTest.java24 import java.math.BigInteger;
50 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo01()
51 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo01()
52 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo01()
63 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo02()
64 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo02()
76 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo03()
78 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo03()
90 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo04()
91 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo04()
[all …]
/external/pdfium/third_party/bigint/
DBigInteger.hh19 class BigInteger { class
38 BigInteger() : sign(zero), mag() {} in BigInteger() function in BigInteger
41 BigInteger(const BigInteger &x) : sign(x.sign), mag(x.mag) {}; in BigInteger() function in BigInteger
44 void operator=(const BigInteger &x);
47 BigInteger(const Blk *b, Index blen, Sign s);
50 BigInteger(const Blk *b, Index blen) : mag(b, blen) { in BigInteger() function in BigInteger
55 BigInteger(const BigUnsigned &x, Sign s);
58 BigInteger(const BigUnsigned &x) : mag(x) { in BigInteger() function in BigInteger
63 BigInteger(unsigned long x);
64 BigInteger( long x);
[all …]
DBigInteger.cc9 void BigInteger::operator =(const BigInteger &x) { in operator =()
19 BigInteger::BigInteger(const Blk *b, Index blen, Sign s) : mag(b, blen) { in BigInteger() function in BigInteger
38 BigInteger::BigInteger(const BigUnsigned &x, Sign s) : mag(x) { in BigInteger() function in BigInteger
62 BigInteger::BigInteger(unsigned long x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger() function in BigInteger
63 BigInteger::BigInteger(unsigned int x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger() function in BigInteger
64 BigInteger::BigInteger(unsigned short x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger() function in BigInteger
70 BigInteger::Blk magOf(X x) { in magOf()
73 return BigInteger::Blk(x < 0 ? UX(-x) : x); in magOf()
76 BigInteger::Sign signOf(X x) { in signOf()
77 return (x == 0) ? BigInteger::zero in signOf()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX962NamedCurves.java3 import java.math.BigInteger;
22 BigInteger n = new BigInteger("ffffffffffffffffffffffff99def836146bc9b1b4d22831", 16);
23 BigInteger h = BigInteger.valueOf(1);
26 new BigInteger("6277101735386680763835789423207666416083908700390324961279"),
27 new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16),
28 new BigInteger("64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1", 16),
44 BigInteger n = new BigInteger("fffffffffffffffffffffffe5fb1a724dc80418648d8dd31", 16);
45 BigInteger h = BigInteger.valueOf(1);
48 new BigInteger("6277101735386680763835789423207666416083908700390324961279"),
49 new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16),
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DSECNamedCurves.java3 import java.math.BigInteger;
30 private static BigInteger fromHex( in fromHex()
33 return new BigInteger(1, Hex.decode(hex)); in fromHex()
44 BigInteger p = fromHex("DB7C2ABF62E35E668076BEAD208B");
45 BigInteger a = fromHex("DB7C2ABF62E35E668076BEAD2088");
46 BigInteger b = fromHex("659EF8BA043916EEDE8911702B22");
48 BigInteger n = fromHex("DB7C2ABF62E35E7628DFAC6561C5");
49 BigInteger h = BigInteger.valueOf(1);
70 BigInteger p = fromHex("DB7C2ABF62E35E668076BEAD208B");
71 BigInteger a = fromHex("6127C24C05F38A0AAAF65C0EF02C");
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
DECParameterSpec_ImplTest.java24 import java.math.BigInteger;
55 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECParameterSpec01()
56 BigInteger.ZERO, in testECParameterSpec01()
57 BigInteger.valueOf(4L)); in testECParameterSpec01()
58 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECParameterSpec01()
59 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10); in testECParameterSpec01()
72 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECParameterSpec02()
73 BigInteger.ZERO, in testECParameterSpec02()
74 BigInteger.valueOf(4L)); in testECParameterSpec02()
75 ECPoint generator = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECParameterSpec02()
[all …]
DEllipticCurve_ImplTest.java24 import java.math.BigInteger;
45 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject02()
46 BigInteger.ONE, in testEqualsObject02()
47 BigInteger.valueOf(19L)); in testEqualsObject02()
51 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject02()
52 BigInteger.ONE, in testEqualsObject02()
53 BigInteger.valueOf(19L)); in testEqualsObject02()
54 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(31L)), in testEqualsObject02()
55 BigInteger.valueOf(1L), in testEqualsObject02()
56 BigInteger.valueOf(19L)); in testEqualsObject02()
[all …]
DECPrivateKeySpec_ImplTest.java24 import java.math.BigInteger;
56 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPrivateKeySpec01()
57 BigInteger.ZERO, in testECPrivateKeySpec01()
58 BigInteger.valueOf(4L)); in testECPrivateKeySpec01()
59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECPrivateKeySpec01()
60 new ECPrivateKeySpec(BigInteger.ZERO, in testECPrivateKeySpec01()
61 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); in testECPrivateKeySpec01()
75 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPrivateKeySpec02()
76 BigInteger.ZERO, in testECPrivateKeySpec02()
77 BigInteger.valueOf(4L)); in testECPrivateKeySpec02()
[all …]
DECPublicKeySpec_ImplTest.java24 import java.math.BigInteger;
56 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPublicKeySpec01()
57 BigInteger.ZERO, in testECPublicKeySpec01()
58 BigInteger.valueOf(4L)); in testECPublicKeySpec01()
59 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECPublicKeySpec01()
61 new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10)); in testECPublicKeySpec01()
75 new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)), in testECPublicKeySpec02()
76 BigInteger.ZERO, in testECPublicKeySpec02()
77 BigInteger.valueOf(4L)); in testECPublicKeySpec02()
78 ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECPublicKeySpec02()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/endo/
DGLVTypeBParameters.java3 import java.math.BigInteger;
7 private static void checkVector(BigInteger[] v, String name) in checkVector()
15 protected final BigInteger beta;
16 protected final BigInteger lambda;
17 protected final BigInteger v1A, v1B, v2A, v2B;
18 protected final BigInteger g1, g2;
21 …public GLVTypeBParameters(BigInteger beta, BigInteger lambda, BigInteger[] v1, BigInteger[] v2, Bi… in GLVTypeBParameters()
22 BigInteger g2, int bits) in GLVTypeBParameters()
38 public BigInteger getBeta() in getBeta()
43 public BigInteger getLambda() in getLambda()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DRSAPrivateCrtKeyParameters.java3 import java.math.BigInteger;
8 private BigInteger e;
9 private BigInteger p;
10 private BigInteger q;
11 private BigInteger dP;
12 private BigInteger dQ;
13 private BigInteger qInv;
19 BigInteger modulus, in RSAPrivateCrtKeyParameters()
20 BigInteger publicExponent, in RSAPrivateCrtKeyParameters()
21 BigInteger privateExponent, in RSAPrivateCrtKeyParameters()
[all …]
DDHParameters.java3 import java.math.BigInteger;
13 private BigInteger g;
14 private BigInteger p;
15 private BigInteger q;
16 private BigInteger j;
33 BigInteger p, in DHParameters()
34 BigInteger g) in DHParameters()
40 BigInteger p, in DHParameters()
41 BigInteger g, in DHParameters()
42 BigInteger q) in DHParameters()
[all …]
/external/crcalc/src/com/hp/creals/
DCR.java108 import java.math.BigInteger;
196 static final BigInteger big0 = BigInteger.ZERO;
197 static final BigInteger big1 = BigInteger.ONE;
198 static final BigInteger bigm1 = BigInteger.valueOf(-1);
199 static final BigInteger big2 = BigInteger.valueOf(2);
200 static final BigInteger big3 = BigInteger.valueOf(3);
201 static final BigInteger big6 = BigInteger.valueOf(6);
202 static final BigInteger big8 = BigInteger.valueOf(8);
203 static final BigInteger big10 = BigInteger.TEN;
204 static final BigInteger big750 = BigInteger.valueOf(750);
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/
DPrimes.java3 import java.math.BigInteger;
17 private static final BigInteger ONE = BigInteger.valueOf(1);
18 private static final BigInteger TWO = BigInteger.valueOf(2);
19 private static final BigInteger THREE = BigInteger.valueOf(3);
33 private static MROutput provablyCompositeWithFactor(BigInteger factor) in provablyCompositeWithFactor()
44 private BigInteger factor;
46 private MROutput(boolean provablyComposite, BigInteger factor) in MROutput()
52 public BigInteger getFactor() in getFactor()
75 private BigInteger prime;
79 private STOutput(BigInteger prime, byte[] primeSeed, int primeGenCounter) in STOutput()
[all …]
/external/guava/guava/src/com/google/common/math/
DBigIntegerMath.java33 import java.math.BigInteger;
55 public static boolean isPowerOfTwo(BigInteger x) { in isPowerOfTwo()
69 public static int log2(BigInteger x, RoundingMode mode) { in log2()
87 BigInteger halfPower = SQRT2_PRECOMPUTED_BITS.shiftRight( in log2()
101 BigInteger x2 = x.pow(2); in log2()
117 @VisibleForTesting static final BigInteger SQRT2_PRECOMPUTED_BITS =
118 new BigInteger("16a09e667f3bcc908b2fb1366ea957d3e3adec17512775099da2f590b0667322a", 16);
129 public static int log10(BigInteger x, RoundingMode mode) { in log10()
136 BigInteger approxPow = BigInteger.TEN.pow(approxLog10); in log10()
152 approxPow = approxPow.divide(BigInteger.TEN); in log10()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DRSAPrivateKey.java3 import java.math.BigInteger;
17 private BigInteger version;
18 private BigInteger modulus;
19 private BigInteger publicExponent;
20 private BigInteger privateExponent;
21 private BigInteger prime1;
22 private BigInteger prime2;
23 private BigInteger exponent1;
24 private BigInteger exponent2;
25 private BigInteger coefficient;
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DBigFraction.java21 import java.math.BigInteger;
86 private static final BigInteger ONE_HUNDRED_DOUBLE = BigInteger.valueOf(100);
89 private final BigInteger numerator;
92 private final BigInteger denominator;
103 public BigFraction(final BigInteger num) { in BigFraction()
104 this(num, BigInteger.ONE); in BigFraction()
115 public BigFraction(BigInteger num, BigInteger den) { in BigFraction()
122 if (BigInteger.ZERO.equals(den)) { in BigFraction()
125 if (BigInteger.ZERO.equals(num)) { in BigFraction()
126 numerator = BigInteger.ZERO; in BigFraction()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DTnaf.java3 import java.math.BigInteger;
14 private static final BigInteger MINUS_ONE = ECConstants.ONE.negate();
15 private static final BigInteger MINUS_TWO = ECConstants.TWO.negate();
16 private static final BigInteger MINUS_THREE = ECConstants.THREE.negate();
82 public static BigInteger norm(final byte mu, ZTauElement lambda) in norm()
84 BigInteger norm; in norm()
87 BigInteger s1 = lambda.u.multiply(lambda.u); in norm()
90 BigInteger s2 = lambda.u.multiply(lambda.v); in norm()
93 BigInteger s3 = lambda.v.multiply(lambda.v).shiftLeft(1); in norm()
181 BigInteger f0 = lambda0.round(); in round()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDSAParametersGenerator.java3 import java.math.BigInteger;
22 private static final BigInteger ZERO = BigInteger.valueOf(0);
23 private static final BigInteger ONE = BigInteger.valueOf(1);
24 private static final BigInteger TWO = BigInteger.valueOf(2);
157 BigInteger q = new BigInteger(1, u); in generateParameters_FIPS186_2()
184 BigInteger x = new BigInteger(1, w); in generateParameters_FIPS186_2()
186 BigInteger c = x.mod(q.shiftLeft(1)); in generateParameters_FIPS186_2()
188 BigInteger p = x.subtract(c.subtract(ONE)); in generateParameters_FIPS186_2()
197 BigInteger g = calculateGenerator_FIPS186_2(p, q, random); in generateParameters_FIPS186_2()
205 … private static BigInteger calculateGenerator_FIPS186_2(BigInteger p, BigInteger q, SecureRandom r) in calculateGenerator_FIPS186_2()
[all …]

12345678910>>...17