Home
last modified time | relevance | path

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

12

/external/openssl/crypto/bn/
Dexptest.c171 printf("a (%3d) = ",BN_num_bits(a)); BN_print(out,a); in main()
172 printf("\nb (%3d) = ",BN_num_bits(b)); BN_print(out,b); in main()
173 printf("\nm (%3d) = ",BN_num_bits(m)); BN_print(out,m); in main()
Dbn_mpi.c70 bits=BN_num_bits(a); in BN_bn2mpi()
125 BN_clear_bit(a,BN_num_bits(a)-1); in BN_mpi2bn()
Dbn_gcd.c256 if (BN_is_odd(n) && (BN_num_bits(n) <= (BN_BITS <= 32 ? 450 : 2048))) in BN_mod_inverse()
356 if (BN_num_bits(A) == BN_num_bits(B)) in BN_mod_inverse()
361 else if (BN_num_bits(A) == BN_num_bits(B) + 1) in BN_mod_inverse()
Dbn_exp.c140 bits=BN_num_bits(p); in BN_exp()
255 bits=BN_num_bits(p); in BN_mod_exp_recp()
396 bits=BN_num_bits(p); in BN_mod_exp_mont()
597 bits=BN_num_bits(p); in BN_mod_exp_mont_consttime()
766 bits = BN_num_bits(p); in BN_mod_exp_mont_word()
891 bits=BN_num_bits(p); in BN_mod_exp_simple()
Dbn_gf2m.c420 const int max = BN_num_bits(p); in BN_GF2m_mod()
498 const int max = BN_num_bits(p); in BN_GF2m_mod_mul()
554 const int max = BN_num_bits(p); in BN_GF2m_mod_sqr()
615 if (BN_num_bits(u) < BN_num_bits(v)) in BN_GF2m_mod_inv()
811 n = BN_num_bits(b) - 1; in BN_GF2m_mod_exp_arr()
838 const int max = BN_num_bits(p); in BN_GF2m_mod_exp()
897 const int max = BN_num_bits(p); in BN_GF2m_mod_sqrt()
1016 const int max = BN_num_bits(p); in BN_GF2m_mod_solve_quad()
Dbn_mod.c268 max_shift = BN_num_bits(m) - BN_num_bits(r); in BN_mod_lshift_quick()
Dbn_recp.c98 recp->num_bits=BN_num_bits(d); in BN_RECP_CTX_set()
164 i=BN_num_bits(m); in BN_div_recp()
Dbn_exp2.c141 bits1=BN_num_bits(p1); in BN_mod_exp2_mont()
142 bits2=BN_num_bits(p2); in BN_mod_exp2_mont()
Dbn_div.c97 nd=BN_num_bits(d);
98 nm=BN_num_bits(m);
224 norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2); in BN_div()
441 norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2); in BN_div_no_branch()
/external/openssl/crypto/dsa/
Ddsa_ossl.c256 if (BN_num_bits(&kq) <= BN_num_bits(dsa->q)) in dsa_sign_setup()
307 if (BN_num_bits(dsa->q) != 160) in dsa_do_verify()
313 if (BN_num_bits(dsa->p) > OPENSSL_DSA_MAX_MODULUS_BITS) in dsa_do_verify()
Ddsa_lib.c245 i=BN_num_bits(r->q); in DSA_size()
293 ret->length = BN_num_bits(r->q); in DSA_dup_DH()
/external/openssl/crypto/rsa/
Drsa_eay.c171 if (BN_num_bits(rsa->n) > OPENSSL_RSA_MAX_MODULUS_BITS) in RSA_eay_public_encrypt()
184 if (BN_num_bits(rsa->n) > OPENSSL_RSA_SMALL_MODULUS_BITS) in RSA_eay_public_encrypt()
186 if (BN_num_bits(rsa->e) > OPENSSL_RSA_MAX_PUBEXP_BITS) in RSA_eay_public_encrypt()
622 if (BN_num_bits(rsa->n) > OPENSSL_RSA_MAX_MODULUS_BITS) in RSA_eay_public_decrypt()
635 if (BN_num_bits(rsa->n) > OPENSSL_RSA_SMALL_MODULUS_BITS) in RSA_eay_public_decrypt()
637 if (BN_num_bits(rsa->e) > OPENSSL_RSA_MAX_PUBEXP_BITS) in RSA_eay_public_decrypt()
Drsa_pss.c99 MSBits = (BN_num_bits(rsa->n) - 1) & 0x7; in RSA_verify_PKCS1_PSS()
194 MSBits = (BN_num_bits(rsa->n) - 1) & 0x7; in RSA_padding_add_PKCS1_PSS()
/external/openssl/crypto/asn1/
Dt_pkey.c147 mod_len = BN_num_bits(x->n); in RSA_print()
240 if (BIO_printf(bp,"Private-Key: (%d bit)\n",BN_num_bits(x->p)) in DSA_print()
543 BN_num_bits(order)) <= 0) goto err; in EC_KEY_print()
704 BN_num_bits(x->p)) <= 0) in DHparams_print()
770 BN_num_bits(x->p)) <= 0) in DSAparams_print()
827 BN_num_bits(order)) <= 0) in ECParameters_print()
Dt_spki.c90 BN_num_bits(pkey->pkey.rsa->n)); in NETSCAPE_SPKI_print()
Dx_bignum.c117 if(BN_num_bits(bn) & 0x7) pad = 0; in bn_i2c()
Da_enum.c154 j=BN_num_bits(bn); in BN_to_ASN1_ENUMERATED()
/external/openssl/crypto/ec/
Dec_mult.c227 len = BN_num_bits(scalar); in compute_wNAF()
416 numblocks = (BN_num_bits(scalar) / blocksize) + 1; in ec_wNAF_mul()
462 bits = i < num ? BN_num_bits(scalars[i]) : BN_num_bits(scalar); in ec_wNAF_mul()
805 bits = BN_num_bits(order); in ec_wNAF_precompute_mult()
Dectest.c132 fprintf(stdout, "%d-bit scalars ", (int)BN_num_bits(s));
142 if (!BN_pseudo_rand(r[i], BN_num_bits(s), 0, 0)) ABORT;
146 if (!BN_pseudo_rand(r0[i], BN_num_bits(s), 0, 0)) ABORT;
690 if (!BN_pseudo_rand(y, BN_num_bits(y), 0, 0)) ABORT; in prime_field_tests()
702 if (!BN_pseudo_rand(x, BN_num_bits(y) - 1, 0, 0)) ABORT; in prime_field_tests()
1171 if (!BN_pseudo_rand(y, BN_num_bits(y), 0, 0)) ABORT; in char2_field_tests()
1183 if (!BN_pseudo_rand(x, BN_num_bits(y) - 1, 0, 0)) ABORT; in char2_field_tests()
/external/openssl/apps/
Ddsaparam.c363 bits_p=BN_num_bits(dsa->p); in MAIN()
364 bits_q=BN_num_bits(dsa->q); in MAIN()
365 bits_g=BN_num_bits(dsa->g); in MAIN()
/external/openssl/crypto/dh/
Ddh_key.c141 l = dh->length ? dh->length : BN_num_bits(dh->p)-1; /* secret exponent length */ in generate_key()
182 if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) in compute_key()
/external/openssl/crypto/evp/
Dp_lib.c85 return(BN_num_bits(pkey->pkey.rsa->n)); in EVP_PKEY_bits()
89 return(BN_num_bits(pkey->pkey.dsa->p)); in EVP_PKEY_bits()
110 ret = BN_num_bits(order); in EVP_PKEY_bits()
/external/openssl/crypto/ecdsa/
Decs_ossl.c254 if (8 * dgst_len > BN_num_bits(order)) in ecdsa_do_sign()
387 if (8 * dgst_len > BN_num_bits(order)) in ecdsa_do_verify()
/external/openssl/crypto/pqueue/
Dpq_compat.h104 #define pq_64bit_get_length(x) BN_num_bits((x))
/external/openssl/include/openssl/
Dpq_compat.h104 #define pq_64bit_get_length(x) BN_num_bits((x))

12