Home
last modified time | relevance | path

Searched refs:BN_bin2bn (Results 1 – 25 of 43) sorted by relevance

12

/external/boringssl/src/crypto/dsa/
Ddsa_test.c173 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()
Ddsa.c236 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/
Decdsa_test.cc130 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/
DMathFunctions.c239 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()
DCpriECC.c225 || 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 …]
DCpriRSA.c63 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()
DCpriMisc.c77 if(BN_bin2bn(in->buffer, in->size, out) == NULL) in BnFrom2B()
DRSAKeySieve.c278 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/
Ddh_test.cc440 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/
Dbn_asn1.c42 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()
Drandom.c166 if (!BN_bin2bn(buf, bytes, rnd)) { in BN_rand()
313 if (!BN_bin2bn(k_bytes, num_k_bytes, out)) { in BN_generate_dsa_nonce()
Dconvert.c72 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/
Dpoloutil.cc25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL); in BytesToHexString()
66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL); in BigEndianBytesToInt()
/external/boringssl/src/crypto/ec/
Dec.c300 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()
Doct.c218 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()
Dp224-64.c253 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()
Dp256-64.c153 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/
Dcrypto_openssl.c94 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/
Dandroid_compat_hacks.c53 return BN_bin2bn(data, sizeof(data), NULL); in get_rfc3526_prime_1536()
/external/boringssl/src/crypto/asn1/
Dx_bignum.c138 if(!BN_bin2bn(cont, len, bn)) { in bn_c2i()
Da_enum.c179 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL) in ASN1_ENUMERATED_to_BN()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c210 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/
Drsa_impl.c145 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/
Deap_server_pwd.c700 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/
Deap_pwd.c442 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()

12