Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c257 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/
Deap_pwd.c365 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/
Deap_pwd_common.c158 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/
Dpolochallengeresponse.cc56 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/
Drsa.c83 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()
Dssh-dss.c79 rlen = BN_num_bytes(sig->r); in ssh_dss_sign()
80 slen = BN_num_bytes(sig->s); in ssh_dss_sign()
Dsshbuf-getput-crypto.c150 int len = BN_num_bytes(v), prepend = 0, r; in sshbuf_put_bignum2()
Dauth-rsa.c109 len = BN_num_bytes(challenge); in auth_rsa_verify_response()
Dkex.c796 hlen = BN_num_bytes(host_modulus); in derive_ssh1_session_id()
797 slen = BN_num_bytes(server_modulus); in derive_ssh1_session_id()
Dsshconnect1.c187 len = BN_num_bytes(challenge); in respond_to_rsa_challenge()
/external/google-tv-pairing-protocol/cpp/src/polo/util/
Dpoloutil.cc38 int length = BN_num_bytes(bn); in HexStringToBytes()
58 int length = BN_num_bytes(bn); in IntToBigEndianBytes()
/external/boringssl/src/crypto/ecdsa/
Decdsa_test.cc117 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/
Dplainrsa-gen.c91 binlen = 1 + BN_num_bytes(key->e) + BN_num_bytes(key->n); in mix_b64_pubkey()
/external/boringssl/src/crypto/asn1/
Dt_pkey.c80 if (BN_num_bytes(num) <= sizeof(long)) in ASN1_bn_print()
Dx_bignum.c122 return pad + BN_num_bytes(bn); in bn_i2c()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c554 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/
Doct.c106 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/
Drandom.c256 const unsigned num_k_bytes = BN_num_bytes(range); in BN_generate_dsa_nonce()
Dbn.c242 unsigned BN_num_bytes(const BIGNUM *bn) { in BN_num_bytes() function
Dconvert.c118 n = i = BN_num_bytes(in); in BN_bn2bin()
/external/boringssl/src/crypto/dh/
Ddh.c165 int DH_size(const DH *dh) { return BN_num_bytes(dh->p); } in DH_size()
Dparams.c302 BN_num_bytes(dh->p) != (1024 / 8) || in DH_check_standard_parameters()
/external/boringssl/src/crypto/dsa/
Ddsa_impl.c227 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/
Dp_ec_asn1.c435 if (priv_key && (i = (size_t)BN_num_bytes(priv_key)) > buf_len) { in do_EC_KEY_print()
/external/boringssl/src/include/openssl/
Dbn.h210 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);

12