/third_party/openssl/test/ |
D | rsa_mp_test.c | 137 BN_bin2bn(n, sizeof(n) - 1, NULL), in key2048p3() 138 BN_bin2bn(e, sizeof(e) - 1, NULL), in key2048p3() 139 BN_bin2bn(d, sizeof(d) - 1, NULL)), 1)) in key2048p3() 143 BN_bin2bn(p, sizeof(p) - 1, NULL), in key2048p3() 144 BN_bin2bn(q, sizeof(q) - 1, NULL)), 1)) in key2048p3() 148 BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL), in key2048p3() 149 BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL), in key2048p3() 150 BN_bin2bn(iqmp, sizeof(iqmp) - 1, in key2048p3() 160 pris[0] = BN_bin2bn(ex_prime, sizeof(ex_prime) - 1, NULL); in key2048p3() 161 exps[0] = BN_bin2bn(ex_exponent, sizeof(ex_exponent) - 1, NULL); in key2048p3() [all …]
|
D | rsa_test.c | 35 BN_bin2bn(n, sizeof(n)-1, NULL), \ 36 BN_bin2bn(e, sizeof(e)-1, NULL), \ 37 BN_bin2bn(d, sizeof(d)-1, NULL)); \ 39 BN_bin2bn(p, sizeof(p)-1, NULL), \ 40 BN_bin2bn(q, sizeof(q)-1, NULL)); \ 42 BN_bin2bn(dmp1, sizeof(dmp1)-1, NULL), \ 43 BN_bin2bn(dmq1, sizeof(dmq1)-1, NULL), \ 44 BN_bin2bn(iqmp, sizeof(iqmp)-1, NULL)); \
|
D | dsa_no_digest_size_test.c | 97 if (!DSA_set0_pqg(dsa, p = BN_bin2bn(dsap_2048, sizeof(dsap_2048), NULL), in load_dsa_params() 98 q = BN_bin2bn(dsaq_2048, sizeof(dsaq_2048), NULL), in load_dsa_params() 99 g = BN_bin2bn(dsag_2048, sizeof(dsag_2048), NULL))) { in load_dsa_params()
|
D | dhtest.c | 533 if (!TEST_ptr(priv_key = BN_bin2bn(td->xA, td->xA_len, NULL)) in rfc5114_test() 534 || !TEST_ptr(pub_key = BN_bin2bn(td->yA, td->yA_len, NULL)) in rfc5114_test() 538 if (!TEST_ptr(priv_key = BN_bin2bn(td->xB, td->xB_len, NULL)) in rfc5114_test() 539 || !TEST_ptr(pub_key = BN_bin2bn(td->yB, td->yB_len, NULL)) in rfc5114_test() 583 if (!TEST_ptr(bady = BN_bin2bn(dhtest_rfc5114_2048_224_bad_y, in rfc5114_test()
|
D | ec_internal_test.c | 86 || !TEST_true(BN_bin2bn(params, len, p)) in field_tests() 87 || !TEST_true(BN_bin2bn(params + len, len, a)) in field_tests() 88 || !TEST_true(BN_bin2bn(params + 2 * len, len, b)) in field_tests()
|
D | srptest.c | 56 b = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); in run_srp() 70 a = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); in run_srp()
|
D | enginetest.c | 236 if (!RSA_set0_key(rsa, BN_bin2bn(n, sizeof(n)-1, NULL), in get_test_pkey() 237 BN_bin2bn(e, sizeof(e)-1, NULL), NULL)) { in get_test_pkey()
|
/third_party/openssl/crypto/bn/ |
D | bn_const.c | 37 return BN_bin2bn(RFC2409_PRIME_768, sizeof(RFC2409_PRIME_768), bn); in BN_get_rfc2409_prime_768() 69 return BN_bin2bn(RFC2409_PRIME_1024, sizeof(RFC2409_PRIME_1024), bn); in BN_get_rfc2409_prime_1024() 109 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), bn); in BN_get_rfc3526_prime_1536() 156 return BN_bin2bn(RFC3526_PRIME_2048, sizeof(RFC3526_PRIME_2048), bn); in BN_get_rfc3526_prime_2048() 219 return BN_bin2bn(RFC3526_PRIME_3072, sizeof(RFC3526_PRIME_3072), bn); in BN_get_rfc3526_prime_3072() 298 return BN_bin2bn(RFC3526_PRIME_4096, sizeof(RFC3526_PRIME_4096), bn); in BN_get_rfc3526_prime_4096() 409 return BN_bin2bn(RFC3526_PRIME_6144, sizeof(RFC3526_PRIME_6144), bn); in BN_get_rfc3526_prime_6144() 552 return BN_bin2bn(RFC3526_PRIME_8192, sizeof(RFC3526_PRIME_8192), bn); in BN_get_rfc3526_prime_8192()
|
D | bn_rand.c | 84 if (!BN_bin2bn(buf, bytes, rnd)) in bnrand() 255 if (!BN_bin2bn(k_bytes, num_k_bytes, out)) in BN_generate_dsa_nonce()
|
D | bn_mpi.c | 75 if (BN_bin2bn(d, (int)len, a) == NULL) { in BN_mpi2bn()
|
/third_party/openssl/apps/ |
D | testdsa.h | 236 priv_key = BN_bin2bn(dsa_t.priv, dsa_t.priv_l, NULL); in get_dsa() 237 pub_key = BN_bin2bn(dsa_t.pub, dsa_t.pub_l, NULL); in get_dsa() 238 p = BN_bin2bn(dsa_t.p, dsa_t.p_l, NULL); in get_dsa() 239 q = BN_bin2bn(dsa_t.q, dsa_t.q_l, NULL); in get_dsa() 240 g = BN_bin2bn(dsa_t.g, dsa_t.g_l, NULL); in get_dsa()
|
/third_party/openssl/fuzz/ |
D | bignum.c | 65 OPENSSL_assert(BN_bin2bn(buf, l1, b1) == b1); in FuzzerTestOneInput() 67 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput() 68 OPENSSL_assert(BN_bin2bn(buf + l1 + l2, l3, b3) == b3); in FuzzerTestOneInput()
|
D | bndiv.c | 72 OPENSSL_assert(BN_bin2bn(buf, l1, b1) == b1); in FuzzerTestOneInput() 74 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput()
|
/third_party/openssl/crypto/srp/ |
D | srp_vfy.c | 231 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL))) in SRP_user_pwd_set_sv() 236 vinfo->s = BN_bin2bn(tmp, len, NULL); in SRP_user_pwd_set_sv() 320 if ((newgN->bn = BN_bin2bn(tmp, len, NULL))) in SRP_gN_new_init() 568 BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), in SRP_VBASE_get1_by_user() 569 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL))) in SRP_VBASE_get1_by_user() 600 N_bn_alloc = BN_bin2bn(tmp, len, NULL); in SRP_create_verifier() 606 g_bn_alloc = BN_bin2bn(tmp, len, NULL); in SRP_create_verifier() 624 s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); in SRP_create_verifier() 628 s = BN_bin2bn(tmp2, len, NULL); in SRP_create_verifier() 699 salttmp = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); in SRP_create_verifier_BN()
|
/third_party/openssl/doc/man3/ |
D | BN_bn2bin.pod | 6 BN_bn2bin, BN_bin2bn, BN_bn2lebinpad, BN_lebin2bn, BN_bn2hex, BN_bn2dec, 16 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret); 43 BN_bin2bn() converts the positive integer in big-endian form of length 48 BN_bin2bn() except the buffer is in little-endian format. 84 BN_bin2bn() returns the B<BIGNUM>, NULL on error.
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_openssl.c | 111 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime() 136 return BN_bin2bn(RFC3526_ORDER_1536, sizeof(RFC3526_ORDER_1536), NULL); in get_group5_order() 555 pub = BN_bin2bn(pubkey, pubkey_len, NULL); in crypto_dh_derive_secret() 556 p = BN_bin2bn(prime, prime_len, NULL); in crypto_dh_derive_secret() 567 q = BN_bin2bn(order, order_len, NULL); in crypto_dh_derive_secret() 602 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp() 603 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp() 604 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp() 876 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed() 880 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed() [all …]
|
/third_party/libwebsockets/lib/tls/openssl/ |
D | lws-genec.c | 140 bn_x = BN_bin2bn(el[LWS_GENCRYPTO_EC_KEYEL_X].buf, in lws_genec_eckey_import() 146 bn_y = BN_bin2bn(el[LWS_GENCRYPTO_EC_KEYEL_Y].buf, in lws_genec_eckey_import() 179 bn_d = BN_bin2bn(el[LWS_GENCRYPTO_EC_KEYEL_D].buf, in lws_genec_eckey_import() 638 r = BN_bin2bn(sig, keybytes, NULL); in lws_genecdsa_hash_sig_verify_jws() 644 s = BN_bin2bn(sig + keybytes, keybytes, NULL); in lws_genecdsa_hash_sig_verify_jws()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_openssl.c | 170 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime() 195 return BN_bin2bn(RFC3526_ORDER_1536, sizeof(RFC3526_ORDER_1536), NULL); in get_group5_order() 628 pub = BN_bin2bn(pubkey, pubkey_len, NULL); in crypto_dh_derive_secret() 629 p = BN_bin2bn(prime, prime_len, NULL); in crypto_dh_derive_secret() 640 q = BN_bin2bn(order, order_len, NULL); in crypto_dh_derive_secret() 675 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp() 676 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp() 677 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp() 949 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed() 953 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed() [all …]
|
/third_party/openssl/crypto/dsa/ |
D | dsa_gen.c | 153 if (!BN_bin2bn(md, qsize, q)) in dsa_builtin_paramgen() 200 if (!BN_bin2bn(md, qsize, r0)) in dsa_builtin_paramgen() 423 if (!BN_bin2bn(pmd, qsize, q)) in dsa_builtin_paramgen2() 479 if (!BN_bin2bn(md, mdsize, r0)) in dsa_builtin_paramgen2() 566 if (!BN_bin2bn(md, mdsize, test)) in dsa_builtin_paramgen2()
|
/third_party/openssl/crypto/ec/ |
D | ec_curve.c | 3039 if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data() 3040 || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data() 3041 || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) { in ec_group_new_from_data() 3077 if ((x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data() 3078 || (y = BN_bin2bn(params + 4 * param_len, param_len, NULL)) == NULL) { in ec_group_new_from_data() 3086 if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data()
|
D | ec2_oct.c | 310 if (!BN_bin2bn(buf + 1, field_len, x)) in ec_GF2m_simple_oct2point() 321 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) in ec_GF2m_simple_oct2point()
|
D | ecp_oct.c | 328 if (!BN_bin2bn(buf + 1, field_len, x)) in ec_GFp_simple_oct2point() 339 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) in ec_GFp_simple_oct2point()
|
D | ec_print.c | 27 ret = BN_bin2bn(buf, buf_len, ret); in EC_POINT_point2bn()
|
/third_party/pulseaudio/src/modules/raop/ |
D | raop-crypto.c | 97 n_bn = BN_bin2bn(modulus, size, NULL); in rsa_encrypt() 105 e_bn = BN_bin2bn(exponent, size, NULL); in rsa_encrypt()
|
/third_party/openssl/crypto/sm2/ |
D | sm2_sign.c | 175 e = BN_bin2bn(z, md_size, NULL); in sm2_compute_msg_hash() 417 e = BN_bin2bn(dgst, dgstlen, NULL); in sm2_sign() 466 e = BN_bin2bn(dgst, dgstlen, NULL); in sm2_verify()
|