Home
last modified time | relevance | path

Searched refs:BN_num_bits (Results 1 – 25 of 54) sorted by relevance

123

/external/openssh/
Dsshconnect1.c350 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 …]
Ddh.c125 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()
Dauth-rsa.c101 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()
Dsshd.c1890 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 …]
Dauthfd.c218 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()
Dauth1.c181 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()
Dkexgexc.c117 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()
Drsa.c80 if (BN_num_bits(key->e) < 2 || !BN_is_odd(key->e)) in rsa_public_encrypt()
/external/vboot_reference/utility/
DdumpRSAPublicKey.c24 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/
Dgcd.c279 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()
Dexponentiation.c153 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 …]
Drandom.c193 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()
Dbn.c232 unsigned BN_num_bits(const BIGNUM *bn) { in BN_num_bits() function
243 return (BN_num_bits(bn) + 7) / 8; in BN_num_bytes()
Ddiv.c168 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()
Dsqrt.c241 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/
Dutil_misc.c49 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/
Dwnaf.c188 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/
Ddh_impl.c227 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/
Ddsa_impl.c146 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()
Ddsa.c280 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/
Drsa_impl.c112 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/
Decdsa.c112 num_bits = BN_num_bits(order); in digest_to_bn()
302 if (BN_num_bits(k) <= BN_num_bits(order)) { in ecdsa_sign_setup()
Decdsa_asn1.c102 num_bits = BN_num_bits(order); in ECDSA_size()
/external/boringssl/src/crypto/asn1/
Dx_bignum.c116 if(BN_num_bits(bn) & 0x7) pad = 0; in bn_i2c()
Da_enum.c155 j=BN_num_bits(bn); in BN_to_ASN1_ENUMERATED()

123