/external/boringssl/src/crypto/dsa/ |
D | dsa_test.cc | 174 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), nullptr); in GetFIPSDSA() 175 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), nullptr); in GetFIPSDSA() 176 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), nullptr); in GetFIPSDSA() 177 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr); in GetFIPSDSA() 178 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), nullptr); in GetFIPSDSA()
|
D | dsa.c | 258 if (!BN_bin2bn(md, qsize, q)) { in DSA_generate_parameters_ex() 307 if (!BN_bin2bn(md, qsize, r0) || in DSA_generate_parameters_ex() 553 if (BN_bin2bn(digest, digest_len, &m) == NULL) { in DSA_do_sign() 672 if (BN_bin2bn(digest, digest_len, &u1) == NULL) { in DSA_do_check_signature()
|
/external/tpm2/ |
D | MathFunctions.c | 242 if (BN_bin2bn(a, aSize, bnA) == NULL || BN_bin2bn(b, bSize, bnB) == NULL) in _math__Mul() 303 || BN_bin2bn(n->buffer, n->size, bnN) == NULL in _math__Div() 304 || BN_bin2bn(d->buffer, d->size, bnD) == NULL) in _math__Div() 471 if ( BN_bin2bn(m, mSize, bnM) == NULL in _math__ModExp() 472 || BN_bin2bn(e, eSize, bnE) == NULL in _math__ModExp() 473 || 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() 617 if ( !BN_bin2bn(Q->x.t.buffer, Q->x.t.size, bnX) in _cpri__EccIsPointOnCurve() 618 || !BN_bin2bn(Q->y.t.buffer, Q->y.t.size, bnY) in _cpri__EccIsPointOnCurve() 619 || !BN_bin2bn(curveData->p->buffer, curveData->p->size, bnP) in _cpri__EccIsPointOnCurve() 620 || !BN_bin2bn(curveData->a->buffer, curveData->a->size, bnA) in _cpri__EccIsPointOnCurve() 622 || !BN_bin2bn(curveData->b->buffer, curveData->b->size, bnB) in _cpri__EccIsPointOnCurve() 707 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnNm1) == NULL in _cpri__GenerateKeyEcc() 729 if ( BN_bin2bn(withExtra, keySizeInBytes+8, bnD) == NULL in _cpri__GenerateKeyEcc() 828 || 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() 206 BN_bin2bn(publicKey->buffer, publicKey->size, bnN); in _cpri__TestKeyRSA() 1294 BN_bin2bn(p->buffer, p->size, bnP); in _cpri__GenerateKeyRSA() 1376 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/fipsmodule/ecdsa/ |
D | ecdsa_test.cc | 128 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); in TestTamperedSig() 129 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); in TestTamperedSig() 134 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); in TestTamperedSig() 135 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); in TestTamperedSig() 249 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->r)); in TEST() 250 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->s)); in TEST() 291 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM()
|
/external/boringssl/src/crypto/bn_extra/ |
D | bn_asn1.c | 42 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_parse_asn1_unsigned() 58 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_parse_asn1_unsigned_buggy()
|
/external/boringssl/src/crypto/dh/ |
D | dh_test.cc | 444 dhA->priv_key = BN_bin2bn(td->xA, td->xA_len, nullptr); in RunRFC5114Tests() 445 dhA->pub_key = BN_bin2bn(td->yA, td->yA_len, nullptr); in RunRFC5114Tests() 447 dhB->priv_key = BN_bin2bn(td->xB, td->xB_len, nullptr); in RunRFC5114Tests() 448 dhB->pub_key = BN_bin2bn(td->yB, td->yB_len, nullptr); in RunRFC5114Tests() 515 BN_bin2bn(kRFC5114_2048_224BadY, sizeof(kRFC5114_2048_224BadY), nullptr)); in TestBadY()
|
/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/fipsmodule/ec/ |
D | ec_test.cc | 234 bssl::UniquePtr<BIGNUM> p(BN_bin2bn(kP, sizeof(kP), nullptr)); in TEST() 236 bssl::UniquePtr<BIGNUM> a(BN_bin2bn(kA, sizeof(kA), nullptr)); in TEST() 238 bssl::UniquePtr<BIGNUM> b(BN_bin2bn(kB, sizeof(kB), nullptr)); in TEST() 240 bssl::UniquePtr<BIGNUM> gx(BN_bin2bn(kX, sizeof(kX), nullptr)); in TEST() 242 bssl::UniquePtr<BIGNUM> gy(BN_bin2bn(kY, sizeof(kY), nullptr)); in TEST() 244 bssl::UniquePtr<BIGNUM> order(BN_bin2bn(kOrder, sizeof(kOrder), nullptr)); in TEST()
|
D | ec.c | 313 if (!BN_bin2bn(params + 5 * param_len, param_len, order) || in DEFINE_LOCAL_DATA() 423 if (!(p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) || in ec_group_new_from_data() 424 !(a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) || in ec_group_new_from_data() 425 !(b = BN_bin2bn(params + 2 * param_len, param_len, NULL))) { in ec_group_new_from_data() 442 if (!(x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) || in ec_group_new_from_data() 443 !(y = BN_bin2bn(params + 4 * param_len, param_len, NULL))) { in ec_group_new_from_data() 452 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()
|
/external/boringssl/src/crypto/fipsmodule/ |
D | bcm.c | 119 *out = BN_bin2bn(in, len, NULL); in set_bignum() 274 BIGNUM *qx = BN_bin2bn(kQx, sizeof(kQx), NULL); in self_test_ecdsa_key() 275 BIGNUM *qy = BN_bin2bn(kQy, sizeof(kQy), NULL); in self_test_ecdsa_key() 276 BIGNUM *d = BN_bin2bn(kD, sizeof(kD), NULL); in self_test_ecdsa_key()
|
/external/boringssl/src/fipstools/ |
D | cavp_rsa2_sigver_test.cc | 68 !BN_bin2bn(ctx->N.data(), ctx->N.size(), key->n) || in TestRSA2SigVer() 69 !BN_bin2bn(e_bytes.data(), e_bytes.size(), key->e)) { in TestRSA2SigVer()
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 105 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime() 483 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp() 484 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp() 485 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp() 745 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed() 749 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed() 777 priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed() 778 pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed() 812 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), in dh5_derive_shared() 1128 bn = BN_bin2bn(buf, len, NULL); in crypto_bignum_init_set() [all …]
|
/external/openssh/ |
D | rsa.c | 102 if (BN_bin2bn(outbuf, len, out) == NULL) { in rsa_public_encrypt() 143 } else if (BN_bin2bn(outbuf, len, out) == NULL) { in rsa_private_decrypt()
|
D | ssh-dss.c | 185 if ((BN_bin2bn(sigblob, INTBLOB_LEN, sig->r) == NULL) || in ssh_dss_verify() 186 (BN_bin2bn(sigblob+ INTBLOB_LEN, INTBLOB_LEN, sig->s) == NULL)) { in ssh_dss_verify()
|
D | sshbuf-getput-crypto.c | 43 if (v != NULL && BN_bin2bn(d, len, v) == NULL) in sshbuf_get_bignum2() 64 if (v != NULL && BN_bin2bn(d + 2, len_bytes, v) == NULL) in sshbuf_get_bignum1()
|
/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/asn1/ |
D | a_enum.c | 179 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL) in ASN1_ENUMERATED_to_BN()
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | random.c | 184 if (!BN_bin2bn(buf, bytes, rnd)) { in bn_rand_with_additional_data()
|
D | bytes.c | 65 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) { in BN_bin2bn() function
|
/external/boringssl/src/crypto/ecdh/ |
D | ecdh_test.cc | 62 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM()
|