HomeSort by relevance Sort by last modified time
    Searched full:bitlength (Results 26 - 50 of 242) sorted by null

12 3 4 5 6 7 8 910

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
SecP384R1Curve.java 58 return q.bitLength();
SecP521R1Curve.java 58 return q.bitLength();
  /libcore/luni/src/main/java/java/math/
BigInteger.java 149 * pow(2, bitLength)-1]} which is probably prime. The probability that the
154 * {@code bitLength >= 16}, where this implementation will use OpenSSL's
157 * @param bitLength length of the new {@code BigInteger} in bits.
159 * @throws ArithmeticException if {@code bitLength < 2}.
163 public BigInteger(int bitLength, int certainty, Random random) {
164 if (bitLength < 2) {
165 throw new ArithmeticException("bitLength < 2: " + bitLength);
167 if (bitLength < 16) {
171 candidate = random.nextInt() & ((1 << bitLength) - 1)
    [all...]
BitLevel.java 40 /** @see BigInteger#bitLength() */
41 static int bitLength(BigInteger val) {
89 * must be in the range {@code [0, val.bitLength()-1]}
93 // PRE: 0 <= n < val.bitLength()
BigInt.java 215 int actualByteCount = (NativeBN.bitLength(this.bignum) + 7) / 8;
219 int bitLength() {
220 return NativeBN.bitLength(this.bignum);
335 static BigInt generatePrimeDefault(int bitLength) {
337 NativeBN.BN_generate_prime_ex(r.bignum, bitLength, false, 0, 0, 0);
Primality.java 94 if (ni.bitLength() <= 10) {
109 // j = startPoint.bitLength();
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
ECFieldElement.java 27 public int bitLength()
29 return toBigInteger().bitLength();
34 return bitLength() == 1;
93 int bitLength = p.bitLength();
94 if (bitLength >= 96)
96 BigInteger firstWord = p.shiftRight(bitLength - 64);
99 return ONE.shiftLeft(bitLength).subtract(p);
142 return q.bitLength();
293 P = new BigInteger(q.bitLength(), rand)
    [all...]
ECAlgorithms.java 191 int t = x.bitLength();
265 int widthP = Math.max(2, Math.min(16, WNafUtil.getWindowSize(k.bitLength())));
266 int widthQ = Math.max(2, Math.min(16, WNafUtil.getWindowSize(l.bitLength())));
289 int width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(Math.max(k.bitLength(), l.bitLength()))));
370 int width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(ki.bitLength())));
425 int width = Math.max(2, Math.min(16, WNafUtil.getWindowSize(Math.max(kj0.bitLength(), kj1.bitLength()))));
WNafL2RMultiplier.java 21 int width = Math.max(2, Math.min(16, getWindowSize(k.bitLength())));
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/
MSOutlookKeyIdCalculator.java 129 long bitLength = (byteCount << 3);
141 processLength(bitLength);
159 protected abstract void processLength(long bitLength);
211 long bitLength)
218 X[14] = (int)(bitLength >>> 32);
219 X[15] = (int)(bitLength & 0xffffffff);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
DSASigner.java 148 if (n.bitLength() >= message.length * 8)
154 byte[] trunc = new byte[n.bitLength() / 8];
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/
SHA512.java 49 // public DigestT(int bitLength)
51 // super(new SHA512tDigest(bitLength));
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
BouncyCastleProviderConfiguration.java 147 if (spec.getP().bitLength() == keySize)
158 if (specs[i].getP().bitLength() == keySize)
  /prebuilts/go/darwin-x86/src/compress/flate/
reverse_bits.go 46 func reverseBits(number uint16, bitLength byte) uint16 {
47 return reverseUint16(number << uint8(16-bitLength))
  /prebuilts/go/linux-x86/src/compress/flate/
reverse_bits.go 46 func reverseBits(number uint16, bitLength byte) uint16 {
47 return reverseUint16(number << uint8(16-bitLength))
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
ECKeyPairGenerator.java 46 int nBitLength = n.bitLength();
  /external/zopfli/src/zopfli/
katajainen.h 30 of 0, and if only a single symbol occurs at least once, its bitlength will be 1,
  /libcore/ojluni/src/main/java/sun/security/util/
KeyUtil.java 84 size = pubk.getModulus().bitLength();
94 size = params.getOrder().bitLength();
105 size = params.getP().bitLength();
109 size = pubk.getParams().getP().bitLength();
  /system/core/libmincrypt/tools/
DumpPublicKey.java 62 if (modulus.bitLength() != 2048) {
64 modulus.bitLength() + " bits.");
113 int nwords = N.bitLength() / 32; // # of 32 bit integers in modulus
130 BigInteger R = BigInteger.valueOf(2).pow(N.bitLength());
  /cts/tests/tests/keystore/src/android/keystore/cts/
RSASignatureTest.java 62 int modulusSizeBits = ((RSAKey) publicKey).getModulus().bitLength();
130 assertEquals(512, ((RSAKey) keyPair.getPrivate()).getModulus().bitLength());
131 assertEquals(512, ((RSAKey) keyPair.getPublic()).getModulus().bitLength());
RSACipherTest.java 52 int modulusSizeBytes = (modulus.bitLength() + 7) / 8;
175 byte[] plaintext = new byte[((modulus.bitLength() + 7) / 8) + 1];
207 byte[] ciphertext = new byte[((modulus.bitLength() + 7) / 8) + 1];
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DHParameters.java 87 if (l > p.bitLength())
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
BigIntegerHashCodeTest.java 44 aNumber1.divide(aNumber2).bitLength();
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
RSACoreEngine.java 52 int bitSize = key.getModulus().bitLength();
73 int bitSize = key.getModulus().bitLength();
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLECGroupContext.java 99 switch (p.bitLength()) {
176 field = new ECFieldF2m(p.bitLength() - 1, p);

Completed in 1048 milliseconds

12 3 4 5 6 7 8 910