/external/openssh/ |
D | sshconnect1.c | 350 packet_put_int(BN_num_bits(host_key->rsa->n)); in try_rhosts_rsa_authentication() 522 rbits = BN_num_bits(server_key->rsa->n); in ssh_kex() 534 rbits = BN_num_bits(host_key->rsa->n); in ssh_kex() 550 BN_num_bits(server_key->rsa->n), BN_num_bits(host_key->rsa->n)); in ssh_kex() 599 if (BN_num_bits(host_key->rsa->n) < in ssh_kex() 600 BN_num_bits(server_key->rsa->n) + SSH_KEY_BITS_RESERVED) { in ssh_kex() 603 BN_num_bits(host_key->rsa->n), in ssh_kex() 604 BN_num_bits(server_key->rsa->n), in ssh_kex() 612 if (BN_num_bits(server_key->rsa->n) < in ssh_kex() 613 BN_num_bits(host_key->rsa->n) + SSH_KEY_BITS_RESERVED) { in ssh_kex() [all …]
|
D | dh.c | 125 if (BN_num_bits(dhg->p) != dhg->size) { in parse_prime() 127 linenum, BN_num_bits(dhg->p), dhg->size - 1); in parse_prime() 219 int n = BN_num_bits(dh_pub); in dh_pub_is_valid() 247 debug2("bits set: %d/%d", bits_set, BN_num_bits(dh->p)); in dh_pub_is_valid() 253 logit("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p)); in dh_pub_is_valid() 263 (pbits = BN_num_bits(dh->p)) <= 0 || in dh_gen_key()
|
D | auth-rsa.c | 101 if (BN_num_bits(key->rsa->n) < SSH_RSA_MINIMUM_MODULUS_SIZE) { in auth_rsa_verify_response() 104 BN_num_bits(key->rsa->n), SSH_RSA_MINIMUM_MODULUS_SIZE); in auth_rsa_verify_response() 235 keybits = BN_num_bits(key->rsa->n); in rsa_key_allowed_in_file() 239 file, linenum, BN_num_bits(key->rsa->n), bits); in rsa_key_allowed_in_file()
|
D | sshd.c | 1890 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) - 1892 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) + 1895 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) + 2294 if (BN_num_bits(sensitive_data.server_key->rsa->n) < 2295 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) + 2300 BN_num_bits(sensitive_data.server_key->rsa->n), 2301 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n), 2312 if (BN_num_bits(sensitive_data.ssh1_host_key->rsa->n) < 2313 BN_num_bits(sensitive_data.server_key->rsa->n) + 2318 BN_num_bits(sensitive_data.ssh1_host_key->rsa->n), [all …]
|
D | authfd.c | 218 keybits = BN_num_bits(key->rsa->n); in deserialise_identity1() 402 (r = sshbuf_put_u32(msg, BN_num_bits(key->rsa->n))) != 0 || in ssh_decrypt_challenge() 492 if ((r = sshbuf_put_u32(b, BN_num_bits(key->n))) != 0 || in ssh_encode_identity_rsa1() 617 (r = sshbuf_put_u32(msg, BN_num_bits(key->rsa->n))) != 0 || in ssh_remove_identity()
|
D | auth1.c | 181 keybits = BN_num_bits(client_host_key->rsa->n); in auth1_process_rhosts_rsa() 185 BN_num_bits(client_host_key->rsa->n), bits); in auth1_process_rhosts_rsa()
|
D | kexgexc.c | 117 if ((bits = BN_num_bits(p)) < 0 || in input_kex_dh_gex_group() 203 debug("bits %d", BN_num_bits(dh_server_pub)); in input_kex_dh_gex_reply()
|
D | rsa.c | 80 if (BN_num_bits(key->e) < 2 || !BN_is_odd(key->e)) in rsa_public_encrypt()
|
/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 | 279 if (BN_is_odd(n) && (BN_num_bits(n) <= (BN_BITS <= 32 ? 450 : 2048))) { in BN_mod_inverse() 381 if (BN_num_bits(A) == BN_num_bits(B)) { in BN_mod_inverse() 388 } else if (BN_num_bits(A) == BN_num_bits(B) + 1) { in BN_mod_inverse()
|
D | exponentiation.c | 153 bits = BN_num_bits(p); in BN_exp() 218 recp->num_bits = BN_num_bits(d); in BN_RECP_CTX_set() 291 i = BN_num_bits(m); in BN_div_recp() 434 bits = BN_num_bits(p); in mod_exp_recp() 622 bits = BN_num_bits(p); in BN_mod_exp_mont() 872 bits = BN_num_bits(p); in BN_mod_exp_mont_consttime() 895 if ((16 == a->top) && (16 == p->top) && (BN_num_bits(m) == 1024) && in BN_mod_exp_mont_consttime() 906 } else if ((8 == a->top) && (8 == p->top) && (BN_num_bits(m) == 512)) { in BN_mod_exp_mont_consttime() 1240 bits = BN_num_bits(p); in BN_mod_exp_mont_word() 1378 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 | 232 unsigned BN_num_bits(const BIGNUM *bn) { in BN_num_bits() function 243 return (BN_num_bits(bn) + 7) / 8; in BN_num_bytes()
|
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()
|
/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 | 188 len = BN_num_bits(scalar); in compute_wNAF() 358 numblocks = (BN_num_bits(scalar) / blocksize) + 1; in ec_wNAF_mul() 404 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(scalar); in ec_wNAF_mul() 728 bits = BN_num_bits(order); in ec_wNAF_precompute_mult()
|
/external/boringssl/src/crypto/dh/ |
D | dh_impl.c | 227 l = dh->priv_length ? dh->priv_length : BN_num_bits(dh->p) - 1; in generate_key() 266 if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { in compute_key()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa_impl.c | 146 if (BN_num_bits(&kq) <= BN_num_bits(dsa->q) && !BN_add(&kq, &kq, dsa->q)) { in sign_setup() 299 i = BN_num_bits(dsa->q); in verify() 306 if (BN_num_bits(dsa->p) > OPENSSL_DSA_MAX_MODULUS_BITS) { in verify()
|
D | dsa.c | 280 i = BN_num_bits(dsa->q); in DSA_size() 331 ret->priv_length = BN_num_bits(r->q); in DSA_dup_DH()
|
/external/boringssl/src/crypto/rsa/ |
D | rsa_impl.c | 112 if (BN_num_bits(rsa->n) > OPENSSL_RSA_SMALL_MODULUS_BITS && in encrypt() 113 BN_num_bits(rsa->e) > OPENSSL_RSA_MAX_PUBEXP_BITS) { in encrypt() 423 if (BN_num_bits(rsa->n) > OPENSSL_RSA_MAX_MODULUS_BITS) { in verify_raw() 439 if (BN_num_bits(rsa->n) > OPENSSL_RSA_SMALL_MODULUS_BITS && in verify_raw() 440 BN_num_bits(rsa->e) > OPENSSL_RSA_MAX_PUBEXP_BITS) { in verify_raw()
|
/external/boringssl/src/crypto/ecdsa/ |
D | ecdsa.c | 112 num_bits = BN_num_bits(order); in digest_to_bn() 302 if (BN_num_bits(k) <= BN_num_bits(order)) { in ecdsa_sign_setup()
|
D | ecdsa_asn1.c | 102 num_bits = BN_num_bits(order); in ECDSA_size()
|
/external/boringssl/src/crypto/asn1/ |
D | x_bignum.c | 116 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()
|