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

<<11121314151617181920>>

  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DHBasicKeyPairGenerator.java 12 import java.math.BigInteger;
37 BigInteger x = helper.calculatePrivate(dhp, param.getRandom());
38 BigInteger y = helper.calculatePublic(dhp, x);
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLRSAPrivateKey.java 22 import java.math.BigInteger;
42 BigInteger modulus;
44 BigInteger privateExponent;
66 final BigInteger modulus = rsaKeySpec.getModulus();
67 final BigInteger privateExponent = rsaKeySpec.getPrivateExponent();
115 BigInteger modulus = null;
138 final BigInteger modulus = rsaPrivateKey.getModulus();
139 final BigInteger privateExponent = rsaPrivateKey.getPrivateExponent();
177 modulus = new BigInteger(params[0]);
181 privateExponent = new BigInteger(params[2])
    [all...]
  /external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
OpenSSLRSAPrivateKey.java 23 import java.math.BigInteger;
43 BigInteger modulus;
45 BigInteger privateExponent;
67 final BigInteger modulus = rsaKeySpec.getModulus();
68 final BigInteger privateExponent = rsaKeySpec.getPrivateExponent();
116 BigInteger modulus = null;
139 final BigInteger modulus = rsaPrivateKey.getModulus();
140 final BigInteger privateExponent = rsaPrivateKey.getPrivateExponent();
178 modulus = new BigInteger(params[0]);
182 privateExponent = new BigInteger(params[2])
    [all...]
OpenSSLRSAPublicKey.java 23 import java.math.BigInteger;
40 private BigInteger publicExponent;
42 private BigInteger modulus;
108 modulus = new BigInteger(params[0]);
109 publicExponent = new BigInteger(params[1]);
115 public BigInteger getModulus() {
121 public BigInteger getPublicExponent() {
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/
X509CertificateHolderSelector.java 3 import java.math.BigInteger;
22 private BigInteger serialNumber;
41 public X509CertificateHolderSelector(X500Name issuer, BigInteger serialNumber)
54 public X509CertificateHolderSelector(X500Name issuer, BigInteger serialNumber, byte[] subjectKeyId)
66 public BigInteger getSerialNumber()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
WTauNafMultiplier.java 3 import java.math.BigInteger;
22 protected ECPoint multiplyPositive(ECPoint point, BigInteger k)
35 BigInteger[] s = curve.getSi();
56 BigInteger tw = Tnaf.getTw(mu, Tnaf.WIDTH);
59 BigInteger.valueOf(Tnaf.POW_2_WIDTH), tw, alpha);
ECAlgorithms.java 3 import java.math.BigInteger;
33 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks)
70 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a,
71 ECPoint Q, BigInteger b)
90 implSumOfMultipliesGLV(new ECPoint[]{ P, Q }, new BigInteger[]{ a, b }, (GLVEndomorphism)endomorphism));
115 public static ECPoint shamirsTrick(ECPoint P, BigInteger k,
116 ECPoint Q, BigInteger l)
187 public static ECPoint referenceMultiply(ECPoint p, BigInteger k)
189 BigInteger x = k.abs();
241 static ECPoint implShamirsTrickJsf(ECPoint P, BigInteger k
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
ASN1Enumerated.java 5 import java.math.BigInteger;
83 bytes = BigInteger.valueOf(value).toByteArray();
87 * Constructor from BigInteger
92 BigInteger value)
98 * Constructor from encoded BigInteger.
100 * @param bytes the value of this enumerated as an encoded BigInteger (signed).
115 public BigInteger getValue()
117 return new BigInteger(bytes);
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
WTauNafMultiplier.java 4 import java.math.BigInteger;
24 protected ECPoint multiplyPositive(ECPoint point, BigInteger k)
37 BigInteger[] s = curve.getSi();
58 BigInteger tw = Tnaf.getTw(mu, Tnaf.WIDTH);
61 BigInteger.valueOf(Tnaf.POW_2_WIDTH), tw, alpha);
ECAlgorithms.java 4 import java.math.BigInteger;
37 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks)
74 public static ECPoint sumOfTwoMultiplies(ECPoint P, BigInteger a,
75 ECPoint Q, BigInteger b)
94 implSumOfMultipliesGLV(new ECPoint[]{ P, Q }, new BigInteger[]{ a, b }, (GLVEndomorphism)endomorphism));
119 public static ECPoint shamirsTrick(ECPoint P, BigInteger k,
120 ECPoint Q, BigInteger l)
191 public static ECPoint referenceMultiply(ECPoint p, BigInteger k)
193 BigInteger x = k.abs();
245 static ECPoint implShamirsTrickJsf(ECPoint P, BigInteger k
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyAgreementSpi.java 3 import java.math.BigInteger;
52 private static final BigInteger ONE = BigInteger.valueOf(1);
53 private static final BigInteger TWO = BigInteger.valueOf(2);
63 private BigInteger x;
64 private BigInteger p;
65 private BigInteger g;
110 BigInteger r)
163 BigInteger peerY = ((DHPublicKey)key).getY()
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyAgreementSpi.java 4 import java.math.BigInteger;
54 private static final BigInteger ONE = BigInteger.valueOf(1);
55 private static final BigInteger TWO = BigInteger.valueOf(2);
65 private BigInteger x;
66 private BigInteger p;
67 private BigInteger g;
112 BigInteger r)
165 BigInteger peerY = ((DHPublicKey)key).getY()
    [all...]
  /cts/hostsidetests/securitybulletin/src/android/security/cts/
SecurityTestCase.java 29 import java.math.BigInteger;
160 BigInteger address = new BigInteger(ptr.substring(0, length), RADIX_HEX);
164 return address.compareTo(new BigInteger("C0000000", RADIX_HEX)) >= 0;
167 BigInteger address = new BigInteger(ptr.substring(0, length), RADIX_HEX);
172 return address.compareTo(new BigInteger("ff80000000000000", RADIX_HEX)) >= 0;
  /cts/tests/security/src/android/keystore/cts/
Asn1Utils.java 35 import java.math.BigInteger;
147 private static int bigIntegerToInt(BigInteger bigInt) throws CertificateParsingException {
148 if (bigInt.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) > 0
149 || bigInt.compareTo(BigInteger.ZERO) < 0) {
155 private static long bigIntegerToLong(BigInteger bigInt) throws CertificateParsingException {
156 if (bigInt.compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0
157 || bigInt.compareTo(BigInteger.ZERO) < 0) {
  /external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
X7875_NewUnix.java 22 import java.math.BigInteger;
59 private static final BigInteger ONE_THOUSAND = BigInteger.valueOf(1000);
64 // BigInteger helps us with little-endian / big-endian conversions.
65 // (thanks to BigInteger.toByteArray() and a reverse() method we created).
69 private BigInteger uid;
70 private BigInteger gid;
166 // BigInteger might prepend a leading-zero to force a positive representation
232 this.uid = new BigInteger(1, reverse(uidBytes)); // sign-bit forced positive
237 this.gid = new BigInteger(1, reverse(gidBytes)); // sign-bit forced positiv
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
BCRSAPrivateKey.java 6 import java.math.BigInteger;
27 private static BigInteger ZERO = BigInteger.valueOf(0);
29 protected BigInteger modulus;
30 protected BigInteger privateExponent;
65 public BigInteger getModulus()
70 public BigInteger getPrivateExponent()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
JDKDSAPrivateKey.java 6 import java.math.BigInteger;
30 BigInteger x;
111 public BigInteger getX()
160 this.x = (BigInteger)in.readObject();
161 this.dsaSpec = new DSAParameterSpec((BigInteger)in.readObject(), (BigInteger)in.readObject(), (BigInteger)in.readObject());
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/
BCRSAPrivateKey.java 7 import java.math.BigInteger;
31 private static BigInteger ZERO = BigInteger.valueOf(0);
33 protected BigInteger modulus;
34 protected BigInteger privateExponent;
69 public BigInteger getModulus()
74 public BigInteger getPrivateExponent()
  /external/guava/guava-tests/test/com/google/common/math/
MathPreconditionsTest.java 23 import java.math.BigInteger;
93 MathPreconditions.checkPositive("BigInteger", BigInteger.ZERO);
99 MathPreconditions.checkPositive("BigInteger", BigInteger.ONE);
104 MathPreconditions.checkPositive("BigInteger", BigInteger.ZERO.negate());
162 MathPreconditions.checkNonNegative("BigInteger", BigInteger.ZERO);
166 MathPreconditions.checkNonNegative("BigInteger", BigInteger.ONE)
    [all...]
  /cts/tests/tests/location/src/android/location/cts/suplClient/
SuplRrlpMessagesGenerator.java 45 import java.math.BigInteger;
85 version.setMinToNewInstance().setInteger(BigInteger.ZERO);
86 version.setMajToNewInstance().setInteger(BigInteger.valueOf(2));
87 version.setServindToNewInstance().setInteger(BigInteger.ZERO);
94 .setInteger(BigInteger.valueOf(new Random().nextInt(65536)));
156 version.setMinToNewInstance().setInteger(BigInteger.ZERO);
157 version.setMajToNewInstance().setInteger(BigInteger.valueOf(2));
158 version.setServindToNewInstance().setInteger(BigInteger.ZERO);
194 navigationModelData.setGpsWeekToNewInstance().setInteger(BigInteger.ZERO);
195 navigationModelData.setGpsToeToNewInstance().setInteger(BigInteger.ZERO)
    [all...]
  /external/crcalc/src/com/hp/creals/
UnaryCRFunction.java 45 import java.math.BigInteger;
296 final static BigInteger BIG1023 = BigInteger.valueOf(1023);
332 int sloppy_compare(BigInteger x, BigInteger y) {
333 BigInteger difference = x.subtract(y);
342 protected BigInteger approximate(int p) {
375 BigInteger l, f_l;
376 BigInteger h, f_h;
377 BigInteger low_appr = low[0].get_appr(working_arg_prec
    [all...]
  /external/v8/benchmarks/
crypto.js 58 function BigInteger(a,b,c) {
66 // return new, unset BigInteger
67 function nbi() { return new BigInteger(null); }
148 BigInteger.prototype.am = fn;
239 if(mi) BigInteger.ZERO.subTo(this,this);
281 function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }
427 if(this.s != a.s) BigInteger.ZERO.subTo(r,r);
482 BigInteger.ONE.dlShiftTo(ys,t);
496 if(ts != ms) BigInteger.ZERO.subTo(q,q);
501 if(ts < 0) BigInteger.ZERO.subTo(r,r)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
ASN1ObjectIdentifier.java 5 import java.math.BigInteger;
95 BigInteger bigValue = null;
139 bigValue = BigInteger.valueOf(value);
141 bigValue = bigValue.or(BigInteger.valueOf(b & 0x7f));
147 bigValue = bigValue.subtract(BigInteger.valueOf(80));
255 BigInteger fieldValue)
264 BigInteger tmpValue = fieldValue;
288 writeField(aOut, new BigInteger(secondToken).add(BigInteger.valueOf(first)));
300 writeField(aOut, new BigInteger(token))
    [all...]
  /external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/
AlgorithmParametersTestDSA.java 20 import java.math.BigInteger;
119 new BigInteger(1, P), new BigInteger(1, Q), new BigInteger(1, G)));
134 new BigInteger(1, P), new BigInteger(1, Q), new BigInteger(1, G));
144 assertEquals("Provider: " + p.getName(), new BigInteger(1, P), derivedSpec.getP());
145 assertEquals("Provider: " + p.getName(), new BigInteger(1, Q), derivedSpec.getQ());
146 assertEquals("Provider: " + p.getName(), new BigInteger(1, G), derivedSpec.getG())
    [all...]
  /external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/
AlgorithmParametersTestDSA.java 21 import java.math.BigInteger;
123 new BigInteger(1, P), new BigInteger(1, Q), new BigInteger(1, G)));
138 new BigInteger(1, P), new BigInteger(1, Q), new BigInteger(1, G));
148 assertEquals("Provider: " + p.getName(), new BigInteger(1, P), derivedSpec.getP());
149 assertEquals("Provider: " + p.getName(), new BigInteger(1, Q), derivedSpec.getQ());
150 assertEquals("Provider: " + p.getName(), new BigInteger(1, G), derivedSpec.getG())
    [all...]

Completed in 1865 milliseconds

<<11121314151617181920>>