/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_pwd.c | 262 if (((scalar = os_malloc(BN_num_bytes(data->grp->order))) == NULL) || in eap_pwd_build_commit_req() 263 ((element = os_malloc(BN_num_bytes(data->grp->prime) * 2)) == in eap_pwd_build_commit_req() 274 os_memset(scalar, 0, BN_num_bytes(data->grp->order)); in eap_pwd_build_commit_req() 275 os_memset(element, 0, BN_num_bytes(data->grp->prime) * 2); in eap_pwd_build_commit_req() 276 offset = BN_num_bytes(data->grp->order) - in eap_pwd_build_commit_req() 277 BN_num_bytes(data->my_scalar); in eap_pwd_build_commit_req() 280 offset = BN_num_bytes(data->grp->prime) - BN_num_bytes(x); in eap_pwd_build_commit_req() 282 offset = BN_num_bytes(data->grp->prime) - BN_num_bytes(y); in eap_pwd_build_commit_req() 283 BN_bn2bin(y, element + BN_num_bytes(data->grp->prime) + offset); in eap_pwd_build_commit_req() 285 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 | 372 prime_len = BN_num_bytes(data->grp->prime); in eap_pwd_perform_commit_exchange() 373 order_len = BN_num_bytes(data->grp->order); in eap_pwd_perform_commit_exchange() 442 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), x); in eap_pwd_perform_commit_exchange() 443 ptr += BN_num_bytes(data->grp->prime); in eap_pwd_perform_commit_exchange() 444 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), y); in eap_pwd_perform_commit_exchange() 445 ptr += BN_num_bytes(data->grp->prime); in eap_pwd_perform_commit_exchange() 446 BN_bin2bn(ptr, BN_num_bytes(data->grp->order), data->server_scalar); in eap_pwd_perform_commit_exchange() 519 if (((scalar = os_malloc(BN_num_bytes(data->grp->order))) == NULL) || in eap_pwd_perform_commit_exchange() 520 ((element = os_malloc(BN_num_bytes(data->grp->prime) * 2)) == in eap_pwd_perform_commit_exchange() 531 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 | 178 primebytelen = BN_num_bytes(grp->prime); in compute_password_element() 317 if ((cruft = os_malloc(BN_num_bytes(grp->prime))) == NULL) in compute_keys() 331 offset = BN_num_bytes(grp->order) - BN_num_bytes(peer_scalar); in compute_keys() 332 os_memset(cruft, 0, BN_num_bytes(grp->prime)); in compute_keys() 334 eap_pwd_h_update(hash, cruft, BN_num_bytes(grp->order)); in compute_keys() 335 offset = BN_num_bytes(grp->order) - BN_num_bytes(server_scalar); in compute_keys() 336 os_memset(cruft, 0, BN_num_bytes(grp->prime)); in compute_keys() 338 eap_pwd_h_update(hash, cruft, BN_num_bytes(grp->order)); in compute_keys() 347 offset = BN_num_bytes(grp->prime) - BN_num_bytes(k); in compute_keys() 348 os_memset(cruft, 0, BN_num_bytes(grp->prime)); in compute_keys() [all …]
|
/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()
|
/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/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/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/ecdsa/ |
D | ecdsa_test.cc | 109 size_t r_len = BN_num_bytes(ecdsa_sig->r); in TestTamperedSig() 110 size_t s_len = BN_num_bytes(ecdsa_sig->s); in TestTamperedSig() 111 size_t bn_len = BN_num_bytes(order); in TestTamperedSig()
|
D | ecdsa_asn1.c | 82 group_order_size = BN_num_bytes(EC_GROUP_get0_order(group)); in ECDSA_size()
|
/external/tpm2/ |
D | MathFunctions.c | 250 retVal = BN_num_bytes(bnP); in _math__Mul() 487 if((unsigned)BN_num_bytes(bnC) > cSize) in _math__ModExp() 492 i = cSize - BN_num_bytes(bnC); in _math__ModExp()
|
D | CpriRSA.c | 79 if(BN_num_bytes(bnQr) != 0 || BN_num_bits(bnQ) != BN_num_bits(bnP)) in RsaPrivateExponent() 104 fill = key->publicKey->size - BN_num_bytes(bnD); in RsaPrivateExponent() 211 if(BN_num_bytes(bnQr) != 0 || BN_num_bits(bnQ) != BN_num_bits(bnP)) in _cpri__TestKeyRSA() 238 fill = d->size - BN_num_bytes(bnD); in _cpri__TestKeyRSA()
|
D | CpriECC.c | 708 || (keySizeInBytes = (INT16) BN_num_bytes(bnNm1)) > MAX_ECC_KEY_BYTES) in _cpri__GenerateKeyEcc() 1154 BnTo2B(&rOut->b, bnT, (UINT16)BN_num_bytes(bnT)); in SchnorrEcc() 1506 BnTo2B(&U1.b, bnU1, (INT16) BN_num_bytes(bnU1)); in ValidateSignatureEcdsa() 1507 BnTo2B(&U2.b, bnU2, (INT16) BN_num_bytes(bnU2)); in ValidateSignatureEcdsa() 1913 Point2B(group, outZ, pQeB, (INT16)BN_num_bytes(bnN), context); in C_2_2_MQV() 2053 Point2B(group, outZ, pQeB, (INT16)BN_num_bytes(bnN), context); in SM2KeyExchange() 2101 size = (INT16)BN_num_bytes(order); in C_2_2_ECDH()
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 653 publen = BN_num_bytes(dh->pub_key); in dh5_init() 657 privlen = BN_num_bytes(dh->priv_key); in dh5_init() 701 publen = BN_num_bytes(pub_key); in dh5_init() 705 privlen = BN_num_bytes(priv_key); in dh5_init() 1153 num_bytes = BN_num_bytes((const BIGNUM *) a); in crypto_bignum_to_bin() 1462 return BN_num_bytes(e->prime); in crypto_ec_prime_len() 1498 int len = BN_num_bytes(e->prime); in crypto_ec_point_to_bin() 1531 int len = BN_num_bytes(e->prime); in crypto_ec_point_from_bin()
|
/external/boringssl/src/crypto/bn/ |
D | bn_asn1.c | 73 !BN_bn2cbb_padded(&child, BN_num_bytes(bn), bn) || in BN_marshal_asn1()
|
D | convert.c | 161 n = i = BN_num_bytes(in); in BN_bn2bin() 171 size_t num_bytes = BN_num_bytes(in); in BN_bn2le_padded()
|
D | random.c | 273 const unsigned num_k_bytes = BN_num_bytes(range); in BN_generate_dsa_nonce()
|
D | bn.c | 235 unsigned BN_num_bytes(const BIGNUM *bn) { in BN_num_bytes() function
|
/external/boringssl/src/crypto/evp/ |
D | print.c | 83 if (BN_num_bytes(num) <= sizeof(long)) { in bn_print() 128 size_t len = BN_num_bytes(b); in update_buflen() 375 if (priv_key && (i = (size_t)BN_num_bytes(priv_key)) > buf_len) { in do_EC_KEY_print()
|
/external/boringssl/src/crypto/ec/ |
D | oct.c | 99 field_len = BN_num_bytes(&group->field); in ec_GFp_simple_point2oct() 196 field_len = BN_num_bytes(&group->field); in ec_GFp_simple_oct2point()
|
/external/boringssl/src/crypto/dsa/ |
D | dsa.c | 546 if (digest_len > BN_num_bytes(dsa->q)) { in DSA_do_sign() 550 digest_len = BN_num_bytes(dsa->q); in DSA_do_sign() 791 size_t order_len = BN_num_bytes(dsa->q); in DSA_size()
|
/external/boringssl/src/crypto/dh/ |
D | dh.c | 396 int DH_size(const DH *dh) { return BN_num_bytes(dh->p); } in DH_size()
|
D | dh_test.cc | 655 if (BN_num_bytes(bn.get()) != sizeof(kPrime1536) || in TestRFC3526()
|