/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/ |
CryptRsaBasic.c | 123 RsaKey->n = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->n);
141 RsaKey->e = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->e);
159 RsaKey->d = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->d);
177 RsaKey->p = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->p);
195 RsaKey->q = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->q);
213 RsaKey->dmp1 = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->dmp1);
231 RsaKey->dmq1 = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->dmq1);
249 RsaKey->iqmp = BN_bin2bn (BigNumber, (UINT32) BnSize, RsaKey->iqmp);
|
CryptDh.c | 171 Bn = BN_bin2bn (Prime, (UINT32) (PrimeLength / 8), Dh->p);
313 Bn = BN_bin2bn (PeerPublicKey, (UINT32) PeerPublicKeySize, NULL);
|
CryptRsaExt.c | 232 if (BN_bin2bn (PublicExponent, (UINT32) PublicExponentSize, KeyE) == NULL) {
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
poloutil.cc | 25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL); 66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL);
|
/external/boringssl/src/crypto/bn_extra/ |
bn_asn1.c | 42 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL;
|
/external/tpm2/ |
CpriMisc.c | 79 if(BN_bin2bn(in->buffer, in->size, out) == NULL)
|
MathFunctions.c | 242 if (BN_bin2bn(a, aSize, bnA) == NULL || BN_bin2bn(b, bSize, bnB) == NULL) 303 || BN_bin2bn(n->buffer, n->size, bnN) == NULL 304 || BN_bin2bn(d->buffer, d->size, bnD) == NULL) 471 if ( BN_bin2bn(m, mSize, bnM) == NULL 472 || BN_bin2bn(e, eSize, bnE) == NULL 473 || BN_bin2bn(n, nSize, bnN) == NULL)
|
CpriECC.c | 225 || BN_bin2bn(p->x.t.buffer, p->x.t.size, bnX) == NULL 226 || BN_bin2bn(p->y.t.buffer, p->y.t.size, bnY) == NULL 617 if ( !BN_bin2bn(Q->x.t.buffer, Q->x.t.size, bnX) 618 || !BN_bin2bn(Q->y.t.buffer, Q->y.t.size, bnY) 619 || !BN_bin2bn(curveData->p->buffer, curveData->p->size, bnP) 620 || !BN_bin2bn(curveData->a->buffer, curveData->a->size, bnA) 622 || !BN_bin2bn(curveData->b->buffer, curveData->b->size, bnB) 707 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnNm1) == NULL 729 if ( BN_bin2bn(withExtra, keySizeInBytes+8, bnD) == NULL 828 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnN) == NULL [all...] |
CpriRSA.c | 63 if( BN_bin2bn(key->publicKey->buffer, key->publicKey->size, bnN) == NULL 64 || BN_bin2bn(key->privateKey->buffer, key->privateKey->size, bnP) == NULL) 172 if(BN_bin2bn(prime1->buffer, prime1->size, bnP) == NULL) 178 if(BN_bin2bn(prime2->buffer, prime2->size, bnQ) == NULL) 206 BN_bin2bn(publicKey->buffer, publicKey->size, bnN); [all...] |
RSAKeySieve.c | 278 if(BN_bin2bn(b.t.buffer, b.t.size, bnB) == NULL) 702 BN_bin2bn(p->buffer, p->size, bnP); 856 if(BN_bin2bn(p->buffer, p->size, bnP) == NULL) 924 if( BN_bin2bn(r.t.buffer, r.t.size, bnP) == NULL
|
/external/boringssl/src/fipstools/ |
cavp_rsa2_sigver_test.cc | 68 !BN_bin2bn(ctx->N.data(), ctx->N.size(), key->n) || 69 !BN_bin2bn(e_bytes.data(), e_bytes.size(), key->e)) {
|
/libcore/luni/src/main/java/java/math/ |
NativeBN.java | 42 public static native void BN_bin2bn(byte[] s, int len, boolean neg, long ret); 43 // BIGNUM * BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
|
/external/boringssl/src/crypto/ecdh/ |
ecdh_test.cc | 64 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); 152 bssl::UniquePtr<BIGNUM> p(BN_bin2bn(kP, sizeof(kP), nullptr)); 153 bssl::UniquePtr<BIGNUM> a(BN_bin2bn(kA, sizeof(kA), nullptr)); 154 bssl::UniquePtr<BIGNUM> b(BN_bin2bn(kB, sizeof(kB), nullptr)); 155 bssl::UniquePtr<BIGNUM> x(BN_bin2bn(kX, sizeof(kX), nullptr)); 156 bssl::UniquePtr<BIGNUM> y(BN_bin2bn(kY, sizeof(kY), nullptr)); 157 bssl::UniquePtr<BIGNUM> order(BN_bin2bn(kOrder, sizeof(kOrder), nullptr));
|
/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
ecdsa_test.cc | 129 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); 130 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); 135 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); 136 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); 250 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->r)); 251 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->s)); 318 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr));
|
/external/boringssl/src/crypto/dsa/ |
dsa_test.cc | 174 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), nullptr); 175 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), nullptr); 176 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), nullptr); 177 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr); 178 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), nullptr);
|
/external/boringssl/src/crypto/asn1/ |
a_enum.c | 190 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL)
|
/external/wpa_supplicant_8/src/crypto/ |
crypto_openssl.c | 105 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); 498 bn_base = BN_bin2bn(base, base_len, NULL); 499 bn_exp = BN_bin2bn(power, power_len, NULL); 500 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); 760 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); 764 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); 792 priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); 793 pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); 827 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), 1162 bn = BN_bin2bn(buf, len, NULL) [all...] |
/external/boringssl/src/crypto/fipsmodule/bn/ |
bytes.c | 65 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) {
|
random.c | 182 if (!BN_bin2bn(buf, bytes, rnd)) {
|
/system/core/libcrypto_utils/ |
android_pubkey.c | 81 // Convert the modulus to big-endian byte order as expected by BN_bin2bn. 84 new_key->n = BN_bin2bn(modulus_buffer, sizeof(modulus_buffer), NULL);
|
/external/boringssl/src/crypto/fipsmodule/ec/ |
oct.c | 214 if (!BN_bin2bn(buf + 1, field_len, x)) { 227 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) {
|
ec.c | 416 if (!(p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) || 417 !(a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) || 418 !(b = BN_bin2bn(params + 2 * param_len, param_len, NULL))) { 435 if (!(x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) || 436 !(y = BN_bin2bn(params + 4 * param_len, param_len, NULL))) { 445 if (!BN_bin2bn(params + 5 * param_len, param_len, &group->order)) { [all...] |
ec_test.cc | 235 bssl::UniquePtr<BIGNUM> p(BN_bin2bn(kP, sizeof(kP), nullptr)); 237 bssl::UniquePtr<BIGNUM> a(BN_bin2bn(kA, sizeof(kA), nullptr)); 239 bssl::UniquePtr<BIGNUM> b(BN_bin2bn(kB, sizeof(kB), nullptr)); 241 bssl::UniquePtr<BIGNUM> gx(BN_bin2bn(kX, sizeof(kX), nullptr)); 243 bssl::UniquePtr<BIGNUM> gy(BN_bin2bn(kY, sizeof(kY), nullptr)); 245 bssl::UniquePtr<BIGNUM> order(BN_bin2bn(kOrder, sizeof(kOrder), nullptr));
|
/external/wpa_supplicant_8/src/eap_common/ |
eap_pwd_common.c | 210 BN_bin2bn(pwe_digest, SHA256_MAC_LEN, rnd); 218 BN_bin2bn(prfbuf, primebytelen, x_candidate); 222 * BN_bin2bn will treat that string of bits as a big endian
|
/libcore/luni/src/main/native/ |
java_math_NativeBN.cpp | 181 if (!BN_bin2bn(reinterpret_cast<const unsigned char*>(bytes.get()), len, toBigNum(ret))) { 227 if (!BN_bin2bn(bytesTmp, bytesLen, ret)) { 236 // For negative values, BN_bin2bn doesn't interpret the twos-complement 530 NATIVE_METHOD(NativeBN, BN_bin2bn, "([BIZJ)V"),
|