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

1 23 4 5 6 7 8 91011>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DHParametersHelper.java 3 import java.math.BigInteger;
16 private static final BigInteger ONE = BigInteger.valueOf(1);
17 private static final BigInteger TWO = BigInteger.valueOf(2);
20 * Finds a pair of prime BigInteger's {p, q: p = 2q + 1}
24 static BigInteger[] generateSafePrimes(int size, int certainty, SecureRandom random)
31 BigInteger p, q;
73 return new BigInteger[] { p, q };
81 static BigInteger selectGenerator(BigInteger p, BigInteger q, SecureRandom random
    [all...]
DHKeyGeneratorHelper.java 3 import java.math.BigInteger;
14 private static final BigInteger ONE = BigInteger.valueOf(1);
15 private static final BigInteger TWO = BigInteger.valueOf(2);
21 BigInteger calculatePrivate(DHParameters dhParams, SecureRandom random)
30 BigInteger x = BigIntegers.createRandomBigInteger(limit, random).setBit(limit - 1);
38 BigInteger min = TWO;
45 BigInteger q = dhParams.getQ();
50 BigInteger max = q.subtract(TWO)
    [all...]
DSAKeyPairGenerator.java 3 import java.math.BigInteger;
25 private static final BigInteger ONE = BigInteger.valueOf(1);
39 BigInteger x = generatePrivateKey(dsaParams.getQ(), param.getRandom());
40 BigInteger y = calculatePublicKey(dsaParams.getP(), dsaParams.getG(), x);
47 private static BigInteger generatePrivateKey(BigInteger q, SecureRandom random)
55 // BigInteger x = new BigInteger(q.bitLength() + 64, random).mod(q.subtract(ONE)).add(ONE);
57 BigInteger x = BigIntegers.createRandomInRange(ONE, q.subtract(ONE), random)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
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...]
DHPrivateKeyParameters.java 3 import java.math.BigInteger;
8 private BigInteger x;
11 BigInteger x,
19 public BigInteger getX()
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DHKeyGeneratorHelper.java 4 import java.math.BigInteger;
15 private static final BigInteger ONE = BigInteger.valueOf(1);
16 private static final BigInteger TWO = BigInteger.valueOf(2);
22 BigInteger calculatePrivate(DHParameters dhParams, SecureRandom random)
31 BigInteger x = BigIntegers.createRandomBigInteger(limit, random).setBit(limit - 1);
39 BigInteger min = TWO;
46 BigInteger q = dhParams.getQ();
51 BigInteger max = q.subtract(TWO)
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DSAParameters.java 4 import java.math.BigInteger;
14 private BigInteger g;
15 private BigInteger q;
16 private BigInteger p;
20 BigInteger p,
21 BigInteger q,
22 BigInteger g)
30 BigInteger p,
31 BigInteger q,
32 BigInteger g
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DEREnumerated.java 3 import java.math.BigInteger;
12 * @param bytes the value of this enumerated as an encoded BigInteger (signed).
24 public DEREnumerated(BigInteger value)
DERInteger.java 3 import java.math.BigInteger;
21 public DERInteger(BigInteger value)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
BasicAgreement.java 3 import java.math.BigInteger;
25 BigInteger calculateAgreement(CipherParameters pubKey);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
ECPrivateKey.java 3 import java.math.BigInteger;
15 public BigInteger getD();
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DEREnumerated.java 4 import java.math.BigInteger;
14 * @param bytes the value of this enumerated as an encoded BigInteger (signed).
26 public DEREnumerated(BigInteger value)
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/
BasicAgreement.java 4 import java.math.BigInteger;
27 BigInteger calculateAgreement(CipherParameters pubKey);
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/interfaces/
ECPrivateKey.java 4 import java.math.BigInteger;
17 public BigInteger getD();
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
ECMultiplier.java 4 import java.math.BigInteger;
20 ECPoint multiply(ECPoint p, BigInteger k);
  /external/conscrypt/common/src/main/java/org/conscrypt/
CertBlacklist.java 19 import java.math.BigInteger;
35 boolean isSerialNumberBlackListed(BigInteger serial);
  /external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
CertBlacklist.java 20 import java.math.BigInteger;
37 boolean isSerialNumberBlackListed(BigInteger serial);
  /external/opencensus-java/api/src/main/java/io/opencensus/common/
TimeUtils.java 19 import java.math.BigInteger;
45 private static final BigInteger MAX_LONG_VALUE = BigInteger.valueOf(Long.MAX_VALUE);
46 private static final BigInteger MIN_LONG_VALUE = BigInteger.valueOf(Long.MIN_VALUE);
53 BigInteger sum = BigInteger.valueOf(x).add(BigInteger.valueOf(y));
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
StandardDSAEncoding.java 4 import java.math.BigInteger;
19 public byte[] encode(BigInteger n, BigInteger r, BigInteger s) throws IOException
27 public BigInteger[] decode(BigInteger n, byte[] encoding) throws IOException
32 BigInteger r = decodeValue(n, seq, 0);
33 BigInteger s = decodeValue(n, seq, 1);
38 return new BigInteger[]{ r, s };
45 protected BigInteger checkValue(BigInteger n, BigInteger x
    [all...]
PlainDSAEncoding.java 3 import java.math.BigInteger;
13 public byte[] encode(BigInteger n, BigInteger r, BigInteger s)
22 public BigInteger[] decode(BigInteger n, byte[] encoding)
30 return new BigInteger[] {
36 protected BigInteger checkValue(BigInteger n, BigInteger x
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/field/
PrimeField.java 3 import java.math.BigInteger;
7 protected final BigInteger characteristic;
9 PrimeField(BigInteger characteristic)
14 public BigInteger getCharacteristic()
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/signers/
StandardDSAEncoding.java 5 import java.math.BigInteger;
23 public byte[] encode(BigInteger n, BigInteger r, BigInteger s) throws IOException
31 public BigInteger[] decode(BigInteger n, byte[] encoding) throws IOException
36 BigInteger r = decodeValue(n, seq, 0);
37 BigInteger s = decodeValue(n, seq, 1);
42 return new BigInteger[]{ r, s };
49 protected BigInteger checkValue(BigInteger n, BigInteger x
    [all...]
PlainDSAEncoding.java 4 import java.math.BigInteger;
17 public byte[] encode(BigInteger n, BigInteger r, BigInteger s)
26 public BigInteger[] decode(BigInteger n, byte[] encoding)
34 return new BigInteger[] {
40 protected BigInteger checkValue(BigInteger n, BigInteger x
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/field/
PrimeField.java 4 import java.math.BigInteger;
8 protected final BigInteger characteristic;
10 PrimeField(BigInteger characteristic)
15 public BigInteger getCharacteristic()
  /external/wycheproof/java/com/google/security/wycheproof/testcases/
DhTest.java 21 import java.math.BigInteger;
143 final BigInteger p =
144 new BigInteger(
152 final BigInteger g = new BigInteger("2");
157 final BigInteger p =
158 new BigInteger(
168 final BigInteger g = new BigInteger("2");
176 final BigInteger p
    [all...]

Completed in 1121 milliseconds

1 23 4 5 6 7 8 91011>>