Home
last modified time | relevance | path

Searched refs:BN_bn2bin (Results 1 – 25 of 31) sorted by relevance

12

/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpolochallengeresponse.cc69 BN_bn2bin(client_pub_rsa->n, pos); in GetAlpha()
72 BN_bn2bin(client_pub_rsa->e, pos); in GetAlpha()
75 BN_bn2bin(server_pub_rsa->n, pos); in GetAlpha()
78 BN_bn2bin(server_pub_rsa->e, pos); in GetAlpha()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c529 BN_bn2bin(data->my_scalar, scalar + offset); in eap_pwd_perform_commit_exchange()
532 BN_bn2bin(x, element + offset); in eap_pwd_perform_commit_exchange()
534 BN_bn2bin(y, element + BN_num_bytes(data->grp->prime) + offset); in eap_pwd_perform_commit_exchange()
620 BN_bn2bin(data->k, cruft + offset); in eap_pwd_perform_confirm_exchange()
633 BN_bn2bin(x, cruft + offset); in eap_pwd_perform_confirm_exchange()
637 BN_bn2bin(y, cruft + offset); in eap_pwd_perform_confirm_exchange()
644 BN_bn2bin(data->server_scalar, cruft + offset); in eap_pwd_perform_confirm_exchange()
658 BN_bn2bin(x, cruft + offset); in eap_pwd_perform_confirm_exchange()
662 BN_bn2bin(y, cruft + offset); in eap_pwd_perform_confirm_exchange()
669 BN_bn2bin(data->my_scalar, cruft + offset); in eap_pwd_perform_confirm_exchange()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c273 BN_bn2bin(data->my_scalar, scalar + offset); in eap_pwd_build_commit_req()
276 BN_bn2bin(x, element + offset); in eap_pwd_build_commit_req()
278 BN_bn2bin(y, element + BN_num_bytes(data->grp->prime) + offset); in eap_pwd_build_commit_req()
341 BN_bn2bin(data->k, cruft + offset); in eap_pwd_build_confirm_req()
355 BN_bn2bin(x, cruft + offset); in eap_pwd_build_confirm_req()
359 BN_bn2bin(y, cruft + offset); in eap_pwd_build_confirm_req()
366 BN_bn2bin(data->my_scalar, cruft + offset); in eap_pwd_build_confirm_req()
380 BN_bn2bin(x, cruft + offset); in eap_pwd_build_confirm_req()
384 BN_bn2bin(y, cruft + offset); in eap_pwd_build_confirm_req()
391 BN_bn2bin(data->peer_scalar, cruft + offset); in eap_pwd_build_confirm_req()
[all …]
/external/boringssl/src/crypto/dsa/
Ddsa_test.c220 i = BN_bn2bin(dsa->q, buf); in test_generate()
227 i = BN_bn2bin(dsa->p, buf); in test_generate()
234 i = BN_bn2bin(dsa->g, buf); in test_generate()
/external/google-tv-pairing-protocol/cpp/src/polo/util/
Dpoloutil.cc40 BN_bn2bin(bn, &bytes[0]); in HexStringToBytes()
59 BN_bn2bin(bn, &bytes[4 - length]); in IntToBigEndianBytes()
/external/openssh/
Drsa.c94 BN_bn2bin(in, inbuf); in rsa_public_encrypt()
137 BN_bn2bin(in, inbuf); in rsa_private_decrypt()
Dssh-dss.c86 BN_bn2bin(sig->r, sigblob + SIGBLOB_LEN - INTBLOB_LEN - rlen); in ssh_dss_sign()
87 BN_bn2bin(sig->s, sigblob + SIGBLOB_LEN - slen); in ssh_dss_sign()
Dsshbuf-getput-crypto.c155 if (BN_bn2bin(v, d + 1) != len) in sshbuf_put_bignum2()
177 if (BN_bn2bin(v, d) != (int)len_bytes) in sshbuf_put_bignum1()
Dauth-rsa.c113 BN_bn2bin(challenge, buf + 32 - len); in auth_rsa_verify_response()
Dkex.c801 if (BN_bn2bin(host_modulus, hbuf) <= 0 || in derive_ssh1_session_id()
802 BN_bn2bin(server_modulus, sbuf) <= 0) { in derive_ssh1_session_id()
Dsshconnect1.c193 BN_bn2bin(challenge, buf + sizeof(buf) - len); in respond_to_rsa_challenge()
Dssh-agent.c339 BN_bn2bin(challenge, buf + 32 - len); in process_authentication_challenge1()
/external/ipsec-tools/src/racoon/
Dplainrsa-gen.c94 binbuf[0] = BN_bn2bin(key->e, (unsigned char *) &binbuf[1]); in mix_b64_pubkey()
95 ret = BN_bn2bin(key->n, (unsigned char *) (&binbuf[binbuf[0] + 1])); in mix_b64_pubkey()
Dcrypto_openssl.c266 BN_bn2bin(bn, (unsigned char *) binbuf); in eay_hex2asn1dn()
2601 (*var)->l = BN_bn2bin(bn, (unsigned char *) (*var)->v);
2798 BN_bn2bin(in, (unsigned char *) binbuf->v); in bignum_pubkey2rsa()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c313 BN_bn2bin(peer_scalar, cruft + offset); in compute_keys()
317 BN_bn2bin(server_scalar, cruft + offset); in compute_keys()
329 BN_bn2bin(k, cruft + offset); in compute_keys()
/external/boringssl/src/crypto/asn1/
Dt_pkey.c92 n=BN_bn2bin(num,&buf[1]); in ASN1_bn_print()
Dx_bignum.c120 BN_bn2bin(bn, cont); in bn_i2c()
Da_enum.c168 ret->length=BN_bn2bin(bn,ret->data); in BN_to_ASN1_ENUMERATED()
Da_int.c436 ret->length=BN_bn2bin(bn,ret->data); in BN_to_ASN1_INTEGER()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c180 !BN_bn2bin(Ij, B)) { in pkcs12_key_gen_raw()
186 if (!BN_bn2bin(Ij, B)) { in pkcs12_key_gen_raw()
193 if (!BN_bn2bin(Ij, I + j + v - Ijlen)) { in pkcs12_key_gen_raw()
196 } else if (!BN_bn2bin(Ij, I + j)) { in pkcs12_key_gen_raw()
/external/boringssl/src/crypto/dh/
Ddh_impl.c304 ret = BN_bn2bin(shared_key, out); in compute_key()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c402 *result_len = BN_bn2bin(bn_result, result); in crypto_mod_exp()
563 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen)); in dh5_init()
564 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init()
967 BN_bn2bin((const BIGNUM *) a, buf + offset); in crypto_bignum_to_bin()
/external/boringssl/src/crypto/ec/
Dp256-64.c142 num_bytes = BN_bn2bin(bn, b_in); in BN_to_felem()
1824 num_bytes = BN_bn2bin(tmp_scalar, tmp); in ec_GFp_nistp256_points_mul()
1826 num_bytes = BN_bn2bin(p_scalar, tmp); in ec_GFp_nistp256_points_mul()
1869 num_bytes = BN_bn2bin(tmp_scalar, tmp); in ec_GFp_nistp256_points_mul()
1871 num_bytes = BN_bn2bin(scalar, tmp); in ec_GFp_nistp256_points_mul()
/external/boringssl/src/crypto/bn/
Dconvert.c114 size_t BN_bn2bin(const BIGNUM *in, uint8_t *out) { in BN_bn2bin() function
/external/boringssl/src/include/openssl/
Dbn.h247 OPENSSL_EXPORT size_t BN_bn2bin(const BIGNUM *in, uint8_t *out);

12