/third_party/openssl/doc/man3/ |
D | BN_num_bytes.pod | 5 BN_num_bits, BN_num_bytes, BN_num_bits_word - get BIGNUM size 11 int BN_num_bytes(const BIGNUM *a); 19 BN_num_bytes() returns the size of a B<BIGNUM> in bytes. 28 BN_num_bytes() is a macro. 43 and DSA_size(), or use BN_num_bytes() and multiply with 8 (although
|
D | BN_bn2bin.pod | 35 and stores it at B<to>. B<to> must point to BN_num_bytes(B<a>) bytes of 41 BN_num_bytes(B<a>) an error is returned. 105 L<BN_num_bytes(3)>
|
D | BN_set_bit.pod | 58 L<BN_num_bytes(3)>, L<BN_add(3)>
|
/third_party/openssl/apps/ |
D | ecparam.c | 317 if ((tmp_len = (size_t)BN_num_bytes(ec_p)) > buf_len) in ecparam_main() 319 if ((tmp_len = (size_t)BN_num_bytes(ec_a)) > buf_len) in ecparam_main() 321 if ((tmp_len = (size_t)BN_num_bytes(ec_b)) > buf_len) in ecparam_main() 323 if ((tmp_len = (size_t)BN_num_bytes(ec_gen)) > buf_len) in ecparam_main() 325 if ((tmp_len = (size_t)BN_num_bytes(ec_order)) > buf_len) in ecparam_main() 327 if ((tmp_len = (size_t)BN_num_bytes(ec_cofactor)) > buf_len) in ecparam_main()
|
D | dsaparam.c | 173 len = BN_num_bytes(p); in dsaparam_main()
|
/third_party/openssl/crypto/asn1/ |
D | t_pkey.c | 64 if (BN_num_bytes(num) <= BN_BYTES) { in ASN1_bn_print() 72 buflen = BN_num_bytes(num) + 1; in ASN1_bn_print()
|
D | x_bignum.c | 112 return pad + BN_num_bytes(bn); in bn_i2c()
|
/third_party/openssl/crypto/bn/ |
D | rsa_sup_mul.c | 460 int real_limbs = (BN_num_bytes(bn) + LIMB_BYTE_SIZE - 1) / LIMB_BYTE_SIZE; in BN_to_limb() 540 l_im_count = (BN_num_bytes(arg1) + LIMB_BYTE_SIZE - 1) / LIMB_BYTE_SIZE; in ossl_bn_rsa_do_unblind() 541 l_mul_count = (BN_num_bytes(arg2) + LIMB_BYTE_SIZE - 1) / LIMB_BYTE_SIZE; in ossl_bn_rsa_do_unblind() 542 l_mod_count = (BN_num_bytes(to_mod) + LIMB_BYTE_SIZE - 1) / LIMB_BYTE_SIZE; in ossl_bn_rsa_do_unblind() 581 if (num < BN_num_bytes(to_mod)) { in ossl_bn_rsa_do_unblind() 587 tmp = buf + num - BN_num_bytes(to_mod); in ossl_bn_rsa_do_unblind()
|
/third_party/openssl/crypto/ec/ |
D | ecp_oct.c | 184 field_len = BN_num_bytes(group->field); in ec_GFp_simple_point2oct() 220 skip = field_len - BN_num_bytes(x); in ec_GFp_simple_point2oct() 238 skip = field_len - BN_num_bytes(y); in ec_GFp_simple_point2oct() 306 field_len = BN_num_bytes(group->field); in ec_GFp_simple_oct2point()
|
D | ec2_oct.c | 182 skip = field_len - BN_num_bytes(x); in ec_GF2m_simple_point2oct() 200 skip = field_len - BN_num_bytes(y); in ec_GF2m_simple_point2oct()
|
D | ec_print.c | 41 if ((buf_len = BN_num_bytes(bn)) == 0) in EC_POINT_bn2point()
|
D | ecdh_ossl.c | 92 len = BN_num_bytes(x); in ecdh_simple_compute_key()
|
/third_party/libwebsockets/lib/tls/openssl/ |
D | openssl-x509.c | 616 jwk->e[n].len = (unsigned int)BN_num_bytes(mpi[n]); in lws_x509_public_to_jwk() 709 n = BN_num_bytes(cmpi); in lws_x509_jwk_privkey_pem() 725 if ((unsigned int)m != (unsigned int)BN_num_bytes(cmpi)) in lws_x509_jwk_privkey_pem() 759 n = BN_num_bytes(mpi); in lws_x509_jwk_privkey_pem() 796 jwk->e[LWS_GENCRYPTO_RSA_KEYEL_P].len = (unsigned int)BN_num_bytes(dummy[4]); in lws_x509_jwk_privkey_pem() 804 jwk->e[LWS_GENCRYPTO_RSA_KEYEL_Q].len = (unsigned int)BN_num_bytes(dummy[5]); in lws_x509_jwk_privkey_pem()
|
D | lws-genrsa.c | 195 if (BN_num_bytes(mpi[n])) { 197 (unsigned int)BN_num_bytes(mpi[n]), "genrsakey"); 200 el[n].len = (unsigned int)BN_num_bytes(mpi[n]);
|
/third_party/openssl/crypto/pem/ |
D | pvkfmt.c | 541 if (BN_num_bytes(d) > nbyte) in check_bitlen_rsa() 545 if ((BN_num_bytes(iqmp) > hnbyte) in check_bitlen_rsa() 546 || (BN_num_bytes(p) > hnbyte) in check_bitlen_rsa() 547 || (BN_num_bytes(q) > hnbyte) in check_bitlen_rsa() 548 || (BN_num_bytes(dmp1) > hnbyte) in check_bitlen_rsa() 549 || (BN_num_bytes(dmq1) > hnbyte)) in check_bitlen_rsa() 588 nbyte = BN_num_bytes(p); in write_dsa()
|
/third_party/openssl/crypto/srp/ |
D | srp_lib.c | 27 int numN = BN_num_bytes(N); in srp_Calc_xy() 133 if ((cs = OPENSSL_malloc(BN_num_bytes(s))) == NULL) in SRP_Calc_x() 145 if (!EVP_DigestUpdate(ctxt, cs, BN_num_bytes(s))) in SRP_Calc_x()
|
/third_party/openssl/crypto/dh/ |
D | dh_key.c | 65 pad = BN_num_bytes(dh->p) - rv; in DH_compute_key_padded() 242 ret = BN_bn2binpad(tmp, key, BN_num_bytes(dh->p)); in compute_key()
|
/third_party/mindspore/mindspore/ccsrc/fl/armour/secure_protocol/ |
D | secret_sharing.cc | 41 if (ret != 1 || BN_num_bytes(prim) != max_prime_len) { in GetPrime() 43 MS_LOG(ERROR) << "BN_num_bytes: " << BN_num_bytes(prim) << ", max_prime_len: " << max_prime_len; in GetPrime()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_openssl.c | 779 publen = BN_num_bytes(dh->pub_key); in dh5_init() 783 privlen = BN_num_bytes(dh->priv_key); in dh5_init() 829 publen = BN_num_bytes(pub_key); in dh5_init() 833 privlen = BN_num_bytes(priv_key); in dh5_init() 1336 num_bytes = BN_num_bytes((const BIGNUM *) a); in crypto_bignum_to_bin() 1739 return BN_num_bytes(e->prime); in crypto_ec_prime_len() 1751 return BN_num_bytes(e->order); in crypto_ec_order_len() 1803 int len = BN_num_bytes(e->prime); in crypto_ec_point_to_bin() 1836 int len = BN_num_bytes(e->prime); in crypto_ec_point_from_bin() 2034 int len = BN_num_bytes(ecdh->ec->prime); in crypto_ecdh_get_pubkey()
|
/third_party/openssl/test/testutil/ |
D | format_output.c | 280 l1 = bn1 == NULL ? 0 : (BN_num_bytes(bn1) + (BN_is_negative(bn1) ? 1 : 0)); in test_fail_bignum_common() 281 l2 = bn2 == NULL ? 0 : (BN_num_bytes(bn2) + (BN_is_negative(bn2) ? 1 : 0)); in test_fail_bignum_common() 389 } else if (BN_num_bytes(bn) <= BN_OUTPUT_SIZE) { in test_output_bignum()
|
/third_party/openssl/test/ |
D | dsa_no_digest_size_test.c | 128 int digestlen = BN_num_bytes(DSA_get0_q(dsakey)); in sign_and_verify()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_openssl.c | 852 publen = BN_num_bytes(dh->pub_key); in dh5_init() 856 privlen = BN_num_bytes(dh->priv_key); in dh5_init() 902 publen = BN_num_bytes(pub_key); in dh5_init() 906 privlen = BN_num_bytes(priv_key); in dh5_init() 1409 num_bytes = BN_num_bytes((const BIGNUM *) a); in crypto_bignum_to_bin() 1812 return BN_num_bytes(e->prime); in crypto_ec_prime_len() 1824 return BN_num_bytes(e->order); in crypto_ec_order_len() 1883 int len = BN_num_bytes(e->prime); in crypto_ec_point_to_bin() 1916 int len = BN_num_bytes(e->prime); in crypto_ec_point_from_bin() 2148 int len = BN_num_bytes(ecdh->ec->prime); in crypto_ecdh_get_pubkey() [all …]
|
/third_party/openssl/crypto/rsa/ |
D | rsa_ossl.c | 99 num = BN_num_bytes(rsa->n); in rsa_ossl_public_encrypt() 254 num = BN_num_bytes(rsa->n); in rsa_ossl_private_encrypt() 388 num = BN_num_bytes(rsa->n); in rsa_ossl_private_decrypt() 542 num = BN_num_bytes(rsa->n); in rsa_ossl_public_decrypt()
|
D | rsa_crpt.c | 24 return BN_num_bytes(r->n); in RSA_size()
|
/third_party/openssl/crypto/dsa/ |
D | dsa_ossl.c | 102 if (dlen > BN_num_bytes(dsa->q)) in dsa_do_sign() 108 dlen = BN_num_bytes(dsa->q); in dsa_do_sign()
|