/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_pwd.c | 257 if (((scalar = os_malloc(BN_num_bytes(data->grp->order))) == NULL) || in eap_pwd_build_commit_req() 258 ((element = os_malloc(BN_num_bytes(data->grp->prime) * 2)) == in eap_pwd_build_commit_req() 269 os_memset(scalar, 0, BN_num_bytes(data->grp->order)); in eap_pwd_build_commit_req() 270 os_memset(element, 0, BN_num_bytes(data->grp->prime) * 2); in eap_pwd_build_commit_req() 271 offset = BN_num_bytes(data->grp->order) - in eap_pwd_build_commit_req() 272 BN_num_bytes(data->my_scalar); in eap_pwd_build_commit_req() 275 offset = BN_num_bytes(data->grp->prime) - BN_num_bytes(x); in eap_pwd_build_commit_req() 277 offset = BN_num_bytes(data->grp->prime) - BN_num_bytes(y); in eap_pwd_build_commit_req() 278 BN_bn2bin(y, element + BN_num_bytes(data->grp->prime) + offset); in eap_pwd_build_commit_req() 280 data->outbuf = wpabuf_alloc(2 * BN_num_bytes(data->grp->prime) + in eap_pwd_build_commit_req() [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_pwd.c | 365 prime_len = BN_num_bytes(data->grp->prime); in eap_pwd_perform_commit_exchange() 366 order_len = BN_num_bytes(data->grp->order); in eap_pwd_perform_commit_exchange() 436 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), x); in eap_pwd_perform_commit_exchange() 437 ptr += BN_num_bytes(data->grp->prime); in eap_pwd_perform_commit_exchange() 438 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), y); in eap_pwd_perform_commit_exchange() 439 ptr += BN_num_bytes(data->grp->prime); in eap_pwd_perform_commit_exchange() 440 BN_bin2bn(ptr, BN_num_bytes(data->grp->order), data->server_scalar); in eap_pwd_perform_commit_exchange() 513 if (((scalar = os_malloc(BN_num_bytes(data->grp->order))) == NULL) || in eap_pwd_perform_commit_exchange() 514 ((element = os_malloc(BN_num_bytes(data->grp->prime) * 2)) == in eap_pwd_perform_commit_exchange() 525 os_memset(scalar, 0, BN_num_bytes(data->grp->order)); in eap_pwd_perform_commit_exchange() [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_pwd_common.c | 158 primebytelen = BN_num_bytes(grp->prime); in compute_password_element() 297 if ((cruft = os_malloc(BN_num_bytes(grp->prime))) == NULL) in compute_keys() 311 offset = BN_num_bytes(grp->order) - BN_num_bytes(peer_scalar); in compute_keys() 312 os_memset(cruft, 0, BN_num_bytes(grp->prime)); in compute_keys() 314 eap_pwd_h_update(hash, cruft, BN_num_bytes(grp->order)); in compute_keys() 315 offset = BN_num_bytes(grp->order) - BN_num_bytes(server_scalar); in compute_keys() 316 os_memset(cruft, 0, BN_num_bytes(grp->prime)); in compute_keys() 318 eap_pwd_h_update(hash, cruft, BN_num_bytes(grp->order)); in compute_keys() 327 offset = BN_num_bytes(grp->prime) - BN_num_bytes(k); in compute_keys() 328 os_memset(cruft, 0, BN_num_bytes(grp->prime)); in compute_keys() [all …]
|
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/ |
D | polochallengeresponse.cc | 56 size_t client_modulus_size = BN_num_bytes(client_pub_rsa->n); in GetAlpha() 57 size_t client_exponent_size = BN_num_bytes(client_pub_rsa->e); in GetAlpha() 59 size_t server_modulus_size = BN_num_bytes(server_pub_rsa->n); in GetAlpha() 60 size_t server_exponent_size = BN_num_bytes(server_pub_rsa->e); in GetAlpha()
|
/external/openssh/ |
D | rsa.c | 83 olen = BN_num_bytes(key->n); in rsa_public_encrypt() 89 ilen = BN_num_bytes(in); in rsa_public_encrypt() 126 olen = BN_num_bytes(key->n); in rsa_private_decrypt() 132 ilen = BN_num_bytes(in); in rsa_private_decrypt()
|
D | ssh-dss.c | 79 rlen = BN_num_bytes(sig->r); in ssh_dss_sign() 80 slen = BN_num_bytes(sig->s); in ssh_dss_sign()
|
D | sshbuf-getput-crypto.c | 150 int len = BN_num_bytes(v), prepend = 0, r; in sshbuf_put_bignum2()
|
D | auth-rsa.c | 109 len = BN_num_bytes(challenge); in auth_rsa_verify_response()
|
D | kex.c | 796 hlen = BN_num_bytes(host_modulus); in derive_ssh1_session_id() 797 slen = BN_num_bytes(server_modulus); in derive_ssh1_session_id()
|
D | sshconnect1.c | 187 len = BN_num_bytes(challenge); in respond_to_rsa_challenge()
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
D | poloutil.cc | 38 int length = BN_num_bytes(bn); in HexStringToBytes() 58 int length = BN_num_bytes(bn); in IntToBigEndianBytes()
|
/external/boringssl/src/crypto/ecdsa/ |
D | ecdsa_test.cc | 117 size_t r_len = BN_num_bytes(ecdsa_sig->r); in TestTamperedSig() 118 size_t s_len = BN_num_bytes(ecdsa_sig->s); in TestTamperedSig() 119 size_t bn_len = BN_num_bytes(order); in TestTamperedSig()
|
/external/ipsec-tools/src/racoon/ |
D | plainrsa-gen.c | 91 binlen = 1 + BN_num_bytes(key->e) + BN_num_bytes(key->n); in mix_b64_pubkey()
|
/external/boringssl/src/crypto/asn1/ |
D | t_pkey.c | 80 if (BN_num_bytes(num) <= sizeof(long)) in ASN1_bn_print()
|
D | x_bignum.c | 122 return pad + BN_num_bytes(bn); in bn_i2c()
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 554 publen = BN_num_bytes(dh->pub_key); in dh5_init() 558 privlen = BN_num_bytes(dh->priv_key); in dh5_init() 958 num_bytes = BN_num_bytes((const BIGNUM *) a); in crypto_bignum_to_bin() 1249 return BN_num_bytes(e->prime); in crypto_ec_prime_len() 1285 int len = BN_num_bytes(e->prime); in crypto_ec_point_to_bin() 1315 int len = BN_num_bytes(e->prime); in crypto_ec_point_from_bin()
|
/external/boringssl/src/crypto/ec/ |
D | oct.c | 106 field_len = BN_num_bytes(&group->field); in ec_GFp_simple_point2oct() 215 field_len = BN_num_bytes(&group->field); in ec_GFp_simple_oct2point()
|
/external/boringssl/src/crypto/bn/ |
D | random.c | 256 const unsigned num_k_bytes = BN_num_bytes(range); in BN_generate_dsa_nonce()
|
D | bn.c | 242 unsigned BN_num_bytes(const BIGNUM *bn) { in BN_num_bytes() function
|
D | convert.c | 118 n = i = BN_num_bytes(in); in BN_bn2bin()
|
/external/boringssl/src/crypto/dh/ |
D | dh.c | 165 int DH_size(const DH *dh) { return BN_num_bytes(dh->p); } in DH_size()
|
D | params.c | 302 BN_num_bytes(dh->p) != (1024 / 8) || in DH_check_standard_parameters()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa_impl.c | 227 if (digest_len > BN_num_bytes(dsa->q)) { in sign() 231 digest_len = BN_num_bytes(dsa->q); in sign()
|
/external/boringssl/src/crypto/evp/ |
D | p_ec_asn1.c | 435 if (priv_key && (i = (size_t)BN_num_bytes(priv_key)) > buf_len) { in do_EC_KEY_print()
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 210 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
|