Home
last modified time | relevance | path

Searched refs:BN_num_bytes (Results 1 – 25 of 46) sorted by relevance

12

/third_party/openssl/doc/man3/
DBN_num_bytes.pod5 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
DBN_bn2bin.pod35 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)>
DBN_set_bit.pod58 L<BN_num_bytes(3)>, L<BN_add(3)>
/third_party/openssl/apps/
Decparam.c317 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()
Ddsaparam.c173 len = BN_num_bytes(p); in dsaparam_main()
/third_party/openssl/crypto/asn1/
Dt_pkey.c64 if (BN_num_bytes(num) <= BN_BYTES) { in ASN1_bn_print()
72 buflen = BN_num_bytes(num) + 1; in ASN1_bn_print()
Dx_bignum.c112 return pad + BN_num_bytes(bn); in bn_i2c()
/third_party/openssl/crypto/bn/
Drsa_sup_mul.c460 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/
Decp_oct.c184 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()
Dec2_oct.c182 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()
Dec_print.c41 if ((buf_len = BN_num_bytes(bn)) == 0) in EC_POINT_bn2point()
Decdh_ossl.c92 len = BN_num_bytes(x); in ecdh_simple_compute_key()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-x509.c616 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()
Dlws-genrsa.c195 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/
Dpvkfmt.c541 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/
Dsrp_lib.c27 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/
Ddh_key.c65 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/
Dsecret_sharing.cc41 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/
Dcrypto_openssl.c779 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/
Dformat_output.c280 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/
Ddsa_no_digest_size_test.c128 int digestlen = BN_num_bytes(DSA_get0_q(dsakey)); in sign_and_verify()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_openssl.c852 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/
Drsa_ossl.c99 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()
Drsa_crpt.c24 return BN_num_bytes(r->n); in RSA_size()
/third_party/openssl/crypto/dsa/
Ddsa_ossl.c102 if (dlen > BN_num_bytes(dsa->q)) in dsa_do_sign()
108 dlen = BN_num_bytes(dsa->q); in dsa_do_sign()

12