HomeSort by relevance Sort by last modified time
    Searched refs:BigInteger (Results 201 - 225 of 621) sorted by null

1 2 3 4 5 6 7 891011>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
SecP224K1Curve.java 3 import java.math.BigInteger;
15 public static final BigInteger q = new BigInteger(1,
29 this.b = fromBigInteger(BigInteger.valueOf(5));
30 this.order = new BigInteger(1, Hex.decode("010000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7"));
31 this.cofactor = BigInteger.valueOf(1);
51 public BigInteger getQ()
61 public ECFieldElement fromBigInteger(BigInteger x)
SecP256K1Curve.java 3 import java.math.BigInteger;
15 public static final BigInteger q = new BigInteger(1,
29 this.b = fromBigInteger(BigInteger.valueOf(7));
30 this.order = new BigInteger(1, Hex.decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"));
31 this.cofactor = BigInteger.valueOf(1);
51 public BigInteger getQ()
61 public ECFieldElement fromBigInteger(BigInteger x)
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/custom/sec/
SecP192K1Curve.java 4 import java.math.BigInteger;
19 public static final BigInteger q = new BigInteger(1,
33 this.b = fromBigInteger(BigInteger.valueOf(3));
34 this.order = new BigInteger(1, Hex.decode("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D"));
35 this.cofactor = BigInteger.valueOf(1);
56 public BigInteger getQ()
66 public ECFieldElement fromBigInteger(BigInteger x)
SecP224K1Curve.java 4 import java.math.BigInteger;
19 public static final BigInteger q = new BigInteger(1,
33 this.b = fromBigInteger(BigInteger.valueOf(5));
34 this.order = new BigInteger(1, Hex.decode("010000000000000000000000000001DCE8D2EC6184CAF0A971769FB1F7"));
35 this.cofactor = BigInteger.valueOf(1);
55 public BigInteger getQ()
65 public ECFieldElement fromBigInteger(BigInteger x)
SecP256K1Curve.java 4 import java.math.BigInteger;
19 public static final BigInteger q = new BigInteger(1,
33 this.b = fromBigInteger(BigInteger.valueOf(7));
34 this.order = new BigInteger(1, Hex.decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"));
35 this.cofactor = BigInteger.valueOf(1);
55 public BigInteger getQ()
65 public ECFieldElement fromBigInteger(BigInteger x)
  /external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
BigIntegerMathTest.java 22 import static java.math.BigInteger.ONE;
23 import static java.math.BigInteger.ZERO;
38 import java.math.BigInteger;
50 for (BigInteger x : ALL_BIGINTEGER_CANDIDATES) {
69 BigIntegerMath.log2(BigInteger.valueOf(-1), mode);
76 for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
86 for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
95 // Relies on the correctness of isPowerOfTwo(BigInteger).
97 for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
110 for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES)
    [all...]
LongMathTest.java 25 import static java.math.BigInteger.valueOf;
33 import java.math.BigInteger;
47 BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y));
83 // The BigInteger implementation is tested separately, use it as the reference.
125 BigInteger expectedBig = BigIntegerMath.binomial(n, k);
182 * overflow by using BigInteger arithmetic.
185 BigInteger bigX = BigInteger.valueOf(x)
    [all...]
  /external/wycheproof/java/com/google/security/wycheproof/
RandomUtil.java 19 import java.math.BigInteger;
110 * return new BigInteger(k, rand);
122 protected static long getSeedFor(java.math.BigInteger x) {
148 static long getSeedForPrime(BigInteger p) {
155 for (BigInteger x : new BigInteger[] {p, p.clearBit(size - 1)}) {
159 BigInteger q = new BigInteger(size, confidence, rand);
174 static void checkPrime(BigInteger p) throws GeneralSecurityException {
  /external/guava/guava-tests/test/com/google/common/primitives/
UnsignedLongTest.java 26 import java.math.BigInteger;
36 private static final ImmutableSet<BigInteger> TEST_BIG_INTEGERS;
40 ImmutableSet.Builder<BigInteger> testBigIntegersBuilder = ImmutableSet.builder();
48 BigInteger bigI = BigInteger.valueOf(i);
51 .add(BigInteger.valueOf(Long.MAX_VALUE).add(bigI))
52 .add(BigInteger.valueOf(Long.MIN_VALUE).add(bigI))
53 .add(BigInteger.valueOf(Integer.MAX_VALUE).add(bigI))
54 .add(BigInteger.valueOf(Integer.MIN_VALUE).add(bigI))
55 .add(BigInteger.ONE.shiftLeft(63).add(bigI)
    [all...]
  /external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
ZipEightByteInteger.java 21 import java.math.BigInteger;
66 private final BigInteger value;
75 this(BigInteger.valueOf(value));
80 * @param value the BigInteger to store as a ZipEightByteInteger
82 public ZipEightByteInteger(final BigInteger value) {
123 public BigInteger getValue() {
133 return getBytes(BigInteger.valueOf(value));
141 public static byte[] getBytes(final BigInteger value) {
170 * Helper method to get the value as a Java BigInteger from eight
174 * @return the corresponding Java BigInteger valu
    [all...]
  /external/guava/guava-tests/test/com/google/common/math/
MathTesting.java 19 import static java.math.BigInteger.ONE;
20 import static java.math.BigInteger.ZERO;
38 import java.math.BigInteger;
66 /* Helper function to make a BigInteger value from a Long. */
67 private static final Function<Long, BigInteger> TO_BIGINTEGER =
68 new Function<Long, BigInteger>() {
70 public BigInteger apply(Long n) {
71 return BigInteger.valueOf(n);
89 private static final Function<BigInteger, BigInteger> NEGATE_BIGINT
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
ECCurve.java 3 import java.math.BigInteger;
93 protected BigInteger order, cofactor;
106 public abstract ECFieldElement fromBigInteger(BigInteger x);
108 public abstract boolean isValidFieldElement(BigInteger x);
115 public ECPoint validatePoint(BigInteger x, BigInteger y)
126 * @deprecated per-point compression property will be removed, use {@link #validatePoint(BigInteger, BigInteger)}
129 public ECPoint validatePoint(BigInteger x, BigInteger y, boolean withCompression
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
ECCurve.java 4 import java.math.BigInteger;
98 protected BigInteger order, cofactor;
111 public abstract ECFieldElement fromBigInteger(BigInteger x);
113 public abstract boolean isValidFieldElement(BigInteger x);
120 public ECPoint validatePoint(BigInteger x, BigInteger y)
131 * @deprecated per-point compression property will be removed, use {@link #validatePoint(BigInteger, BigInteger)}
134 public ECPoint validatePoint(BigInteger x, BigInteger y, boolean withCompression
    [all...]
  /external/wycheproof/java/com/google/security/wycheproof/testcases/
EcdsaTest.java 24 import java.math.BigInteger;
58 static final BigInteger PubX =
59 new BigInteger(
61 static final BigInteger PubY =
62 new BigInteger(
575 BigInteger extractR(byte[] signature) throws Exception {
578 return new BigInteger(Arrays.copyOfRange(signature, startR + 2, startR + 2 + lengthR));
581 BigInteger extractS(byte[] signature) throws Exception {
586 return new BigInteger(Arrays.copyOfRange(signature, startS + 2, startS + 2 + lengthS));
590 BigInteger extractK(byte[] signature, BigInteger h, ECPrivateKey priv) throws Exception
    [all...]
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
SignerId.java 3 import java.math.BigInteger;
39 public SignerId(X500Name issuer, BigInteger serialNumber)
52 public SignerId(X500Name issuer, BigInteger serialNumber, byte[] subjectKeyId)
62 public BigInteger getSerialNumber()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
X9FieldElement.java 3 import java.math.BigInteger;
29 public X9FieldElement(BigInteger p, ASN1OctetString s)
31 this(new ECFieldElement.Fp(p, new BigInteger(1, s.getOctets())));
39 this(new ECFieldElement.F2m(m, k1, k2, k3, new BigInteger(1, s.getOctets())));
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/
ECDHBasicAgreement.java 3 import java.math.BigInteger;
44 public BigInteger calculateAgreement(
54 BigInteger d = key.getD();
63 BigInteger h = params.getH();
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
X9ECParameters.java 4 import java.math.BigInteger;
28 private static final BigInteger ONE = BigInteger.valueOf(1);
33 private BigInteger n;
34 private BigInteger h;
90 BigInteger n)
98 BigInteger n,
99 BigInteger h)
107 BigInteger n,
108 BigInteger h
    [all...]
X9FieldElement.java 4 import java.math.BigInteger;
31 public X9FieldElement(BigInteger p, ASN1OctetString s)
33 this(new ECFieldElement.Fp(p, new BigInteger(1, s.getOctets())));
41 this(new ECFieldElement.F2m(m, k1, k2, k3, new BigInteger(1, s.getOctets())));
  /external/bouncycastle/bcprov/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()
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
ASN1Integer.java 5 import java.math.BigInteger;
84 bytes = BigInteger.valueOf(value).toByteArray();
88 * Construct an INTEGER from the passed in BigInteger value.
90 * @param value the BigInteger representing the value desired.
95 BigInteger value)
120 * @param bytes the byte array representing a 2's complement encoding of a BigInteger.
164 public BigInteger getValue()
166 return new BigInteger(bytes);
173 * @return the BigInteger that results from treating this ASN.1 INTEGER as unsigned.
175 public BigInteger getPositiveValue(
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
GeneralSubtree.java 4 import java.math.BigInteger;
36 private static final BigInteger ZERO = BigInteger.valueOf(0);
115 BigInteger minimum,
116 BigInteger maximum)
166 public BigInteger getMinimum()
176 public BigInteger getMaximum()
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLRSAPublicKey.java 22 import java.math.BigInteger;
38 private BigInteger publicExponent;
40 private BigInteger modulus;
106 modulus = new BigInteger(params[0]);
107 publicExponent = new BigInteger(params[1]);
113 public BigInteger getModulus() {
119 public BigInteger getPublicExponent() {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
ECNamedCurveSpec.java 3 import java.math.BigInteger;
32 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger();
55 BigInteger n)
66 BigInteger n)
77 BigInteger n,
78 BigInteger h)
89 BigInteger n,
90 BigInteger h)
101 BigInteger n,
102 BigInteger h
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/spec/
ECNamedCurveSpec.java 4 import java.math.BigInteger;
34 BigInteger a = curve.getA().toBigInteger(), b = curve.getB().toBigInteger();
57 BigInteger n)
68 BigInteger n)
79 BigInteger n,
80 BigInteger h)
91 BigInteger n,
92 BigInteger h)
103 BigInteger n,
104 BigInteger h
    [all...]

Completed in 1225 milliseconds

1 2 3 4 5 6 7 891011>>