/external/vboot_reference/utility/ |
D | dumpRSAPublicKey.c | 24 int modulus = BN_num_bits(key->n); in check() 53 nwords = BN_num_bits(N) / 32; in output() 88 BN_set_word(NnumBits, BN_num_bits(N)); in output()
|
/external/boringssl/src/crypto/bn/ |
D | gcd.c | 282 if (BN_is_odd(n) && (BN_num_bits(n) <= (BN_BITS2 <= 32 ? 450 : 2048))) { in BN_mod_inverse_ex() 384 if (BN_num_bits(A) == BN_num_bits(B)) { in BN_mod_inverse_ex() 391 } else if (BN_num_bits(A) == BN_num_bits(B) + 1) { in BN_mod_inverse_ex()
|
D | exponentiation.c | 164 bits = BN_num_bits(p); in BN_exp() 229 recp->num_bits = BN_num_bits(d); in BN_RECP_CTX_set() 302 i = BN_num_bits(m); in BN_div_recp() 445 bits = BN_num_bits(p); in mod_exp_recp() 637 bits = BN_num_bits(p); in BN_mod_exp_mont() 884 bits = BN_num_bits(p); in BN_mod_exp_mont_consttime() 909 if ((16 == a->top) && (16 == p->top) && (BN_num_bits(m) == 1024) && in BN_mod_exp_mont_consttime() 920 } else if ((8 == a->top) && (8 == p->top) && (BN_num_bits(m) == 512)) { in BN_mod_exp_mont_consttime() 1241 bits = BN_num_bits(p); in BN_mod_exp_mont_word() 1374 bits1 = BN_num_bits(p1); in BN_mod_exp2_mont() [all …]
|
D | random.c | 193 n = BN_num_bits(range); /* n > 0 */ in BN_rand_range() 257 const unsigned bits_to_mask = (8 - (BN_num_bits(range) % 8)) % 8; in BN_generate_dsa_nonce()
|
D | bn.c | 231 unsigned BN_num_bits(const BIGNUM *bn) { in BN_num_bits() function 242 return (BN_num_bits(bn) + 7) / 8; in BN_num_bytes()
|
D | convert.c | 386 i = BN_num_bits(a) * 3; in BN_bn2dec() 528 const size_t bits = BN_num_bits(in); in BN_bn2mpi() 600 BN_clear_bit(out, BN_num_bits(out) - 1); in BN_mpi2bn()
|
D | bn_asn1.c | 76 if (BN_num_bits(bn) % 8 == 0 && in BN_bn2cbb()
|
D | div.c | 168 norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2); in BN_div() 510 max_shift = BN_num_bits(m) - BN_num_bits(r); in BN_mod_lshift_quick()
|
D | sqrt.c | 241 if (!BN_pseudo_rand(y, BN_num_bits(p), 0, 0)) { in BN_mod_sqrt() 460 BN_lshift(estimate, BN_value_one(), BN_num_bits(in)/2); in BN_sqrt()
|
D | prime.c | 488 checks = BN_prime_checks_for_size(BN_num_bits(a)); in BN_is_prime_fasttest_ex() 713 if (BN_num_bits(rnd) != (unsigned)bits) { in probable_prime()
|
/external/tpm2/ |
D | CpriRSA.c | 70 if(BN_num_bits(bnP) < BN_num_bits(bnN)/2) in RsaPrivateExponent() 79 if(BN_num_bytes(bnQr) != 0 || BN_num_bits(bnQ) != BN_num_bits(bnP)) in RsaPrivateExponent() 181 if(BN_num_bits(bnQ) != BN_num_bits(bnP)) in _cpri__TestKeyRSA() 191 if(BN_num_bits(bnN) != (publicKey->size * 8)) in _cpri__TestKeyRSA() 206 if(BN_num_bytes(bnQr) != 0 || BN_num_bits(bnQ) != BN_num_bits(bnP)) in _cpri__TestKeyRSA() 1291 if(BN_num_bits(bnT) < 100) // Difference has to be at least 100 bits in _cpri__GenerateKeyRSA() 1319 if(BN_num_bits(bnN) != keySizeInBits) in _cpri__GenerateKeyRSA()
|
D | CpriMisc.c | 33 size = size - (((UINT16) BN_num_bits(inVal) + 7) / 8); in BnTo2B()
|
D | RSAKeySieve.c | 264 wLen = BN_num_bits(bnW); in MillerRabin() 578 UINT32 rounds = MillerRabinRounds(BN_num_bits(bnP)); in PrimeSelectWithSieve() 584 primes = BN_num_bits(bnP); in PrimeSelectWithSieve() 888 || BN_num_bits(bnN) != keySizeInBits) in _cpri__GenerateKeyRSA()
|
/external/tlsdate/src/ |
D | tlsdate-helper-plan9.c | 270 key_bits = BN_num_bits(public_key->pkey.rsa->n); in get_certificate_keybits() 274 key_bits = BN_num_bits(public_key->pkey.rsa->n); in get_certificate_keybits() 278 key_bits = BN_num_bits(public_key->pkey.dsa->p); in get_certificate_keybits() 282 key_bits = BN_num_bits(public_key->pkey.dsa->p); in get_certificate_keybits() 286 key_bits = BN_num_bits(public_key->pkey.dsa->p); in get_certificate_keybits() 290 key_bits = BN_num_bits(public_key->pkey.dsa->p); in get_certificate_keybits() 294 key_bits = BN_num_bits(public_key->pkey.dsa->p); in get_certificate_keybits() 298 key_bits = BN_num_bits(public_key->pkey.dh->pub_key); in get_certificate_keybits()
|
/external/boringssl/src/crypto/dh/ |
D | dh.c | 243 if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { in DH_generate_key() 288 l = dh->priv_length ? dh->priv_length : BN_num_bits(dh->p) - 1; in DH_generate_key() 327 if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { in DH_compute_key() 378 unsigned DH_num_bits(const DH *dh) { return BN_num_bits(dh->p); } in DH_num_bits()
|
/external/vboot_reference/host/lib/ |
D | util_misc.c | 49 nwords = BN_num_bits(rsa_private_key->n) / 32; in vb_keyb_from_rsa() 94 BN_set_word(NnumBits, BN_num_bits(N)); in vb_keyb_from_rsa()
|
/external/boringssl/src/crypto/ec/ |
D | wnaf.c | 131 len = BN_num_bits(scalar); in compute_wNAF() 296 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(g_scalar); in ec_wNAF_mul()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa.c | 593 i = BN_num_bits(dsa->q); in DSA_do_check_signature() 600 if (BN_num_bits(dsa->p) > OPENSSL_DSA_MAX_MODULUS_BITS) { in DSA_do_check_signature() 751 i = BN_num_bits(dsa->q); in DSA_size() 820 if (BN_num_bits(&kq) <= BN_num_bits(dsa->q) && !BN_add(&kq, &kq, dsa->q)) { in DSA_sign_setup() 891 ret->priv_length = BN_num_bits(r->q); in DSA_dup_DH()
|
/external/boringssl/src/crypto/rsa/ |
D | rsa_impl.c | 104 if (BN_num_bits(rsa->n) > OPENSSL_RSA_SMALL_MODULUS_BITS && in rsa_default_encrypt() 105 BN_num_bits(rsa->e) > OPENSSL_RSA_MAX_PUBEXP_BITS) { in rsa_default_encrypt() 420 if (BN_num_bits(rsa->n) > OPENSSL_RSA_MAX_MODULUS_BITS) { in rsa_default_verify_raw() 436 if (BN_num_bits(rsa->n) > OPENSSL_RSA_SMALL_MODULUS_BITS && in rsa_default_verify_raw() 437 BN_num_bits(rsa->e) > OPENSSL_RSA_MAX_PUBEXP_BITS) { in rsa_default_verify_raw() 949 prime_bits = ((bits - BN_num_bits(rsa->n)) + (num_primes - (i + 1))) / in rsa_default_multi_prime_keygen() 990 if (BN_num_bits(r1) == (unsigned) bits) { in rsa_default_multi_prime_keygen()
|
D | padding.c | 525 MSBits = (BN_num_bits(rsa->n) - 1) & 0x7; in RSA_verify_PKCS1_PSS_mgf1() 633 MSBits = (BN_num_bits(rsa->n) - 1) & 0x7; in RSA_padding_add_PKCS1_PSS_mgf1()
|
/external/boringssl/src/crypto/ecdsa/ |
D | ecdsa.c | 116 num_bits = BN_num_bits(order); in digest_to_bn() 297 if (BN_num_bits(k) <= BN_num_bits(order)) { in ecdsa_sign_setup()
|
/external/boringssl/src/crypto/asn1/ |
D | x_bignum.c | 117 if(BN_num_bits(bn) & 0x7) pad = 0; in bn_i2c()
|
D | a_enum.c | 155 j=BN_num_bits(bn); in BN_to_ASN1_ENUMERATED()
|
/external/boringssl/src/crypto/evp/ |
D | p_ec_asn1.c | 345 return BN_num_bits(EC_GROUP_get0_order(group)); in ec_bits() 450 if (BIO_printf(bp, "%s: (%d bit)\n", ecstr, BN_num_bits(order)) <= 0) { in do_EC_KEY_print()
|
D | p_dsa_asn1.c | 303 return BN_num_bits(pkey->pkey.dsa->p); in dsa_bits() 401 BIO_printf(bp, "%s: (%d bit)\n", ktype, BN_num_bits(x->p)) <= 0) { in do_dsa_print()
|