/external/boringssl/src/crypto/dsa/ |
D | dsa_test.c | 173 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), NULL); in get_fips_dsa() 174 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), NULL); in get_fips_dsa() 175 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), NULL); in get_fips_dsa() 176 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), NULL); in get_fips_dsa() 177 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), NULL); in get_fips_dsa()
|
D | dsa.c | 236 if (!BN_bin2bn(md, qsize, q)) { in DSA_generate_parameters_ex() 285 if (!BN_bin2bn(md, qsize, r0) || in DSA_generate_parameters_ex() 519 if (BN_bin2bn(digest, digest_len, &m) == NULL) { in DSA_do_sign() 639 if (BN_bin2bn(digest, digest_len, &u1) == NULL) { in DSA_do_check_signature()
|
/external/boringssl/src/crypto/ecdsa/ |
D | ecdsa_test.cc | 130 if (BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r) == NULL || in TestTamperedSig() 131 BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s) == NULL || in TestTamperedSig() 138 if (BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r) == NULL || in TestTamperedSig() 139 BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s) == NULL || in TestTamperedSig() 321 if (!BN_bin2bn(bytes.data(), bytes.size(), sig->r) || in TestECDSA_SIG_max_len() 322 !BN_bin2bn(bytes.data(), bytes.size(), sig->s)) { in TestECDSA_SIG_max_len()
|
/external/tpm2/ |
D | MathFunctions.c | 239 if (BN_bin2bn(a, aSize, bnA) == NULL || BN_bin2bn(b, bSize, bnB) == NULL) in _math__Mul() 300 || BN_bin2bn(n->buffer, n->size, bnN) == NULL in _math__Div() 301 || BN_bin2bn(d->buffer, d->size, bnD) == NULL) in _math__Div() 466 if ( BN_bin2bn(m, mSize, bnM) == NULL in _math__ModExp() 467 || BN_bin2bn(e, eSize, bnE) == NULL in _math__ModExp() 468 || BN_bin2bn(n, nSize, bnN) == NULL) in _math__ModExp()
|
D | CpriECC.c | 225 || BN_bin2bn(p->x.t.buffer, p->x.t.size, bnX) == NULL in PointFrom2B() 226 || BN_bin2bn(p->y.t.buffer, p->y.t.size, bnY) == NULL in PointFrom2B() 614 if ( !BN_bin2bn(Q->x.t.buffer, Q->x.t.size, bnX) in _cpri__EccIsPointOnCurve() 615 || !BN_bin2bn(Q->y.t.buffer, Q->y.t.size, bnY) in _cpri__EccIsPointOnCurve() 616 || !BN_bin2bn(curveData->p->buffer, curveData->p->size, bnP) in _cpri__EccIsPointOnCurve() 617 || !BN_bin2bn(curveData->a->buffer, curveData->a->size, bnA) in _cpri__EccIsPointOnCurve() 619 || !BN_bin2bn(curveData->b->buffer, curveData->b->size, bnB) in _cpri__EccIsPointOnCurve() 704 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnNm1) == NULL in _cpri__GenerateKeyEcc() 726 if ( BN_bin2bn(withExtra, keySizeInBytes+8, bnD) == NULL in _cpri__GenerateKeyEcc() 825 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnN) == NULL) in SignEcdsa() [all …]
|
D | CpriRSA.c | 63 if( BN_bin2bn(key->publicKey->buffer, key->publicKey->size, bnN) == NULL in RsaPrivateExponent() 64 || BN_bin2bn(key->privateKey->buffer, key->privateKey->size, bnP) == NULL) in RsaPrivateExponent() 172 if(BN_bin2bn(prime1->buffer, prime1->size, bnP) == NULL) in _cpri__TestKeyRSA() 178 if(BN_bin2bn(prime2->buffer, prime2->size, bnQ) == NULL) in _cpri__TestKeyRSA() 201 BN_bin2bn(publicKey->buffer, publicKey->size, bnN); in _cpri__TestKeyRSA() 1281 BN_bin2bn(p->buffer, p->size, bnP); in _cpri__GenerateKeyRSA() 1363 if( BN_bin2bn(r.t.buffer, r.t.size, bnP) == NULL in _cpri__GenerateKeyRSA()
|
D | CpriMisc.c | 77 if(BN_bin2bn(in->buffer, in->size, out) == NULL) in BnFrom2B()
|
D | RSAKeySieve.c | 278 if(BN_bin2bn(b.t.buffer, b.t.size, bnB) == NULL) in MillerRabin() 702 BN_bin2bn(p->buffer, p->size, bnP); in GenerateRandomPrime() 856 if(BN_bin2bn(p->buffer, p->size, bnP) == NULL) in _cpri__GenerateKeyRSA() 924 if( BN_bin2bn(r.t.buffer, r.t.size, bnP) == NULL in _cpri__GenerateKeyRSA()
|
/external/boringssl/src/crypto/dh/ |
D | dh_test.cc | 440 dhA->priv_key = BN_bin2bn(td->xA, td->xA_len, nullptr); in RunRFC5114Tests() 441 dhA->pub_key = BN_bin2bn(td->yA, td->yA_len, nullptr); in RunRFC5114Tests() 443 dhB->priv_key = BN_bin2bn(td->xB, td->xB_len, nullptr); in RunRFC5114Tests() 444 dhB->pub_key = BN_bin2bn(td->yB, td->yB_len, nullptr); in RunRFC5114Tests()
|
/external/boringssl/src/crypto/bn/ |
D | bn_asn1.c | 42 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_cbs2unsigned() 58 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_cbs2unsigned_buggy()
|
D | random.c | 166 if (!BN_bin2bn(buf, bytes, rnd)) { in BN_rand() 313 if (!BN_bin2bn(k_bytes, num_k_bytes, out)) { in BN_generate_dsa_nonce()
|
D | convert.c | 72 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) { in BN_bin2bn() function 595 if (BN_bin2bn(in, in_len, out) == NULL) { in BN_mpi2bn()
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
D | poloutil.cc | 25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL); in BytesToHexString() 66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL); in BigEndianBytesToInt()
|
/external/boringssl/src/crypto/ec/ |
D | ec.c | 300 if (!BN_bin2bn(params + 5 * param_len, param_len, order) || in built_in_curve_scalar_field_monts_init() 430 if (!(p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) || in ec_group_new_from_data() 431 !(a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) || in ec_group_new_from_data() 432 !(b = BN_bin2bn(params + 2 * param_len, param_len, NULL))) { in ec_group_new_from_data() 456 if (!(x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) || in ec_group_new_from_data() 457 !(y = BN_bin2bn(params + 4 * param_len, param_len, NULL))) { in ec_group_new_from_data() 466 if (!BN_bin2bn(params + 5 * param_len, param_len, &group->order) || in ec_group_new_from_data()
|
D | oct.c | 218 if (!BN_bin2bn(buf + 1, field_len, x)) { in ec_GFp_simple_oct2point() 231 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) { in ec_GFp_simple_oct2point()
|
D | p224-64.c | 253 return BN_bin2bn(b_out, sizeof(b_out), out); in felem_to_BN() 1049 BN_bin2bn(nistp224_curve_params[0], sizeof(felem_bytearray), curve_p); in ec_GFp_nistp224_group_set_curve() 1050 BN_bin2bn(nistp224_curve_params[1], sizeof(felem_bytearray), curve_a); in ec_GFp_nistp224_group_set_curve() 1051 BN_bin2bn(nistp224_curve_params[2], sizeof(felem_bytearray), curve_b); in ec_GFp_nistp224_group_set_curve()
|
D | p256-64.c | 153 return BN_bin2bn(b_out, sizeof(b_out), out); in smallfelem_to_BN() 1629 BN_bin2bn(nistp256_curve_params[0], sizeof(felem_bytearray), curve_p); in ec_GFp_nistp256_group_set_curve() 1630 BN_bin2bn(nistp256_curve_params[1], sizeof(felem_bytearray), curve_a); in ec_GFp_nistp256_group_set_curve() 1631 BN_bin2bn(nistp256_curve_params[2], sizeof(felem_bytearray), curve_b); in ec_GFp_nistp256_group_set_curve()
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 94 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime() 459 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp() 460 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp() 461 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp() 667 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed() 671 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed() 698 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), in dh5_derive_shared() 1014 bn = BN_bin2bn(buf, len, NULL); in crypto_bignum_init_set() 1422 x = BN_bin2bn(val, len, NULL); in crypto_ec_point_from_bin() 1423 y = BN_bin2bn(val + len, len, NULL); in crypto_ec_point_from_bin()
|
/external/boringssl/ |
D | android_compat_hacks.c | 53 return BN_bin2bn(data, sizeof(data), NULL); in get_rfc3526_prime_1536()
|
/external/boringssl/src/crypto/asn1/ |
D | x_bignum.c | 138 if(!BN_bin2bn(cont, len, bn)) { in bn_c2i()
|
D | a_enum.c | 179 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL) in ASN1_ENUMERATED_to_BN()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_pwd_common.c | 210 BN_bin2bn(pwe_digest, SHA256_MAC_LEN, rnd); in compute_password_element() 218 BN_bin2bn(prfbuf, primebytelen, x_candidate); in compute_password_element()
|
/external/boringssl/src/crypto/rsa/ |
D | rsa_impl.c | 145 if (BN_bin2bn(buf, rsa_size, f) == NULL) { in rsa_default_encrypt() 470 if (BN_bin2bn(in, in_len, f) == NULL) { in rsa_default_verify_raw() 546 if (BN_bin2bn(in, len, f) == NULL) { in rsa_default_private_transform()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_pwd.c | 700 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), x); in eap_pwd_process_commit_resp() 702 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), y); in eap_pwd_process_commit_resp() 704 BN_bin2bn(ptr, BN_num_bytes(data->grp->order), data->peer_scalar); in eap_pwd_process_commit_resp()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_pwd.c | 442 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), x); in eap_pwd_perform_commit_exchange() 444 BN_bin2bn(ptr, BN_num_bytes(data->grp->prime), y); 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()
|