| /freebsd-head/crypto/openssl/test/ |
| HD | rsa_mp_test.c | 142 BN_bin2bn(n, sizeof(n) - 1, NULL), in key2048_key() 143 BN_bin2bn(e, sizeof(e) - 1, NULL), in key2048_key() 144 BN_bin2bn(d, sizeof(d) - 1, NULL)), 1)) in key2048_key() 157 BN_bin2bn(p, sizeof(p) - 1, NULL), in key2048p3_v1() 158 BN_bin2bn(q, sizeof(q) - 1, NULL)), 1)) in key2048p3_v1() 162 BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL), in key2048p3_v1() 163 BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL), in key2048p3_v1() 164 BN_bin2bn(iqmp, sizeof(iqmp) - 1, in key2048p3_v1() 174 pris[0] = BN_bin2bn(ex_prime, sizeof(ex_prime) - 1, NULL); in key2048p3_v1() 175 exps[0] = BN_bin2bn(ex_exponent, sizeof(ex_exponent) - 1, NULL); in key2048p3_v1() [all …]
|
| HD | rsa_test.c | 34 BN_bin2bn(n, sizeof(n)-1, NULL), \ 35 BN_bin2bn(e, sizeof(e)-1, NULL), \ 36 BN_bin2bn(d, sizeof(d)-1, NULL)); \ 38 BN_bin2bn(p, sizeof(p)-1, NULL), \ 39 BN_bin2bn(q, sizeof(q)-1, NULL)); \ 41 BN_bin2bn(dmp1, sizeof(dmp1)-1, NULL), \ 42 BN_bin2bn(dmq1, sizeof(dmq1)-1, NULL), \ 43 BN_bin2bn(iqmp, sizeof(iqmp)-1, NULL)); \ 385 if (TEST_true(RSA_set0_key(key, BN_bin2bn(num, bytes, NULL), in test_rsa_security_bit() 386 BN_bin2bn(num, bytes, NULL), NULL)) in test_rsa_security_bit() [all …]
|
| HD | dsatest.c | 244 if (!TEST_ptr(p_in = BN_bin2bn(expected_p, sizeof(expected_p), NULL)) in dsa_keygen_test() 245 || !TEST_ptr(q_in = BN_bin2bn(expected_q, sizeof(expected_q), NULL)) in dsa_keygen_test() 246 || !TEST_ptr(g_in = BN_bin2bn(expected_g, sizeof(expected_g), NULL))) in dsa_keygen_test() 354 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) in test_dsa_sig_infinite_loop() 355 || !TEST_ptr(q = BN_bin2bn(out_q, sizeof(out_q), NULL)) in test_dsa_sig_infinite_loop() 356 || !TEST_ptr(g = BN_bin2bn(out_g, sizeof(out_g), NULL)) in test_dsa_sig_infinite_loop() 357 || !TEST_ptr(pub = BN_bin2bn(out_pub, sizeof(out_pub), NULL)) in test_dsa_sig_infinite_loop() 358 || !TEST_ptr(priv = BN_bin2bn(out_priv, sizeof(out_priv), NULL)) in test_dsa_sig_infinite_loop() 443 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) in test_dsa_sig_neg_param() 444 || !TEST_ptr(q = BN_bin2bn(out_q, sizeof(out_q), NULL)) in test_dsa_sig_neg_param() [all …]
|
| HD | dsa_no_digest_size_test.c | 103 if (!DSA_set0_pqg(dsa, p = BN_bin2bn(dsap_2048, sizeof(dsap_2048), NULL), in load_dsa_params() 104 q = BN_bin2bn(dsaq_2048, sizeof(dsaq_2048), NULL), in load_dsa_params() 105 g = BN_bin2bn(dsag_2048, sizeof(dsag_2048), NULL))) { in load_dsa_params()
|
| HD | ffc_internal_test.c | 183 if (!TEST_ptr(p = BN_bin2bn(dsa_2048_224_sha256_p, in ffc_params_validate_g_unverified_test() 187 if (!TEST_ptr(q = BN_bin2bn(dsa_2048_224_sha256_q, in ffc_params_validate_g_unverified_test() 190 if (!TEST_ptr(g = BN_bin2bn(dsa_2048_224_sha256_g, in ffc_params_validate_g_unverified_test() 251 if (!TEST_ptr(p = BN_bin2bn(dsa_2048_224_sha224_p, in ffc_params_validate_pq_test() 255 if (!TEST_ptr(q = BN_bin2bn(dsa_2048_224_sha224_q, in ffc_params_validate_pq_test() 309 if (!TEST_ptr(p = BN_bin2bn(dsa_3072_256_sha512_p, in ffc_params_validate_pq_test() 312 if (!TEST_ptr(q = BN_bin2bn(dsa_3072_256_sha512_q, in ffc_params_validate_pq_test()
|
| HD | acvp_test.c | 290 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL)) in ecdsa_sigver_test() 291 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL)) in ecdsa_sigver_test() 466 || !TEST_ptr(BN_bin2bn(p, p_len, p_bn)) in dsa_create_pkey() 475 || !TEST_ptr(BN_bin2bn(q, q_len, q_bn)) in dsa_create_pkey() 481 || !TEST_ptr(BN_bin2bn(g, g_len, g_bn)) in dsa_create_pkey() 499 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn)) in dsa_create_pkey() 638 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL)) in dsa_sigver_test() 639 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL)) in dsa_sigver_test() 914 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn)) in dh_create_pkey() 921 || !TEST_ptr(BN_bin2bn(priv, priv_len, priv_bn)) in dh_create_pkey() [all …]
|
| HD | evp_pkey_provided_test.c | 473 || !TEST_ptr(n = BN_bin2bn(n_data, sizeof(n_data), NULL)) in test_evp_pkey_get_bn_param_large() 474 || !TEST_ptr(e = BN_bin2bn(e_data, sizeof(e_data), NULL)) in test_evp_pkey_get_bn_param_large() 475 || !TEST_ptr(d = BN_bin2bn(d_data, sizeof(d_data), NULL)) in test_evp_pkey_get_bn_param_large() 557 || !TEST_ptr(pub = BN_bin2bn(pub_data, sizeof(pub_data), NULL)) in test_fromdata_dh_named_group() 558 || !TEST_ptr(priv = BN_bin2bn(priv_data, sizeof(priv_data), NULL)) in test_fromdata_dh_named_group() 772 || !TEST_ptr(pub = BN_bin2bn(pub_data, sizeof(pub_data), NULL)) in test_fromdata_dh_fips186_4() 773 || !TEST_ptr(priv = BN_bin2bn(priv_data, sizeof(priv_data), NULL)) in test_fromdata_dh_fips186_4() 1235 if (!TEST_ptr(ec_priv_bn = BN_bin2bn(ec_priv_keydata, in test_fromdata_ec() 1569 || !TEST_ptr(pub = BN_bin2bn(pub_data, sizeof(pub_data), NULL)) in test_fromdata_dsa_fips186_4() 1570 || !TEST_ptr(priv = BN_bin2bn(priv_data, sizeof(priv_data), NULL)) in test_fromdata_dsa_fips186_4() [all …]
|
| HD | endecode_test.c | 1107 && TEST_ptr(BN_bin2bn(prime_data, sizeof(prime_data), prime)) in do_create_ec_explicit_prime_params() 1108 && TEST_ptr(BN_bin2bn(a_data, sizeof(a_data), a)) in do_create_ec_explicit_prime_params() 1109 && TEST_ptr(BN_bin2bn(b_data, sizeof(b_data), b)) in do_create_ec_explicit_prime_params() 1110 && TEST_ptr(BN_bin2bn(order_data, sizeof(order_data), order)) in do_create_ec_explicit_prime_params() 1197 && TEST_ptr(BN_bin2bn(poly_data, sizeof(poly_data), poly)) in do_create_ec_explicit_trinomial_params() 1198 && TEST_ptr(BN_bin2bn(a_data, sizeof(a_data), a)) in do_create_ec_explicit_trinomial_params() 1199 && TEST_ptr(BN_bin2bn(b_data, sizeof(b_data), b)) in do_create_ec_explicit_trinomial_params() 1200 && TEST_ptr(BN_bin2bn(order_data, sizeof(order_data), order)) in do_create_ec_explicit_trinomial_params() 1201 && TEST_ptr(BN_bin2bn(cofactor_data, sizeof(cofactor_data), cofactor)) in do_create_ec_explicit_trinomial_params()
|
| HD | srptest.c | 62 b = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); in run_srp() 76 a = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); in run_srp()
|
| /freebsd-head/crypto/openssl/apps/ |
| HD | testdsa.h | 242 priv_key = BN_bin2bn(dsa_t.priv, dsa_t.priv_l, NULL); in get_dsa() 243 pub_key = BN_bin2bn(dsa_t.pub, dsa_t.pub_l, NULL); in get_dsa() 244 p = BN_bin2bn(dsa_t.p, dsa_t.p_l, NULL); in get_dsa() 245 q = BN_bin2bn(dsa_t.q, dsa_t.q_l, NULL); in get_dsa() 246 g = BN_bin2bn(dsa_t.g, dsa_t.g_l, NULL); in get_dsa()
|
| /freebsd-head/crypto/openssl/demos/pkey/ |
| HD | EVP_PKEY_DSA_paramfromdata.c | 31 p = BN_bin2bn(dsa_p, sizeof(dsa_p), NULL); in main() 32 q = BN_bin2bn(dsa_q, sizeof(dsa_q), NULL); in main() 33 g = BN_bin2bn(dsa_g, sizeof(dsa_g), NULL); in main()
|
| /freebsd-head/crypto/openssl/fuzz/ |
| HD | bignum.c | 66 OPENSSL_assert(BN_bin2bn(buf, l1, b1) == b1); in FuzzerTestOneInput() 68 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput() 69 OPENSSL_assert(BN_bin2bn(buf + l1 + l2, l3, b3) == b3); in FuzzerTestOneInput()
|
| HD | 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()
|
| /freebsd-head/crypto/openssl/crypto/srp/ |
| HD | srp_vfy.c | 238 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL))) in SRP_user_pwd_set_sv() 243 vinfo->s = BN_bin2bn(tmp, len, NULL); in SRP_user_pwd_set_sv() 330 if ((newgN->bn = BN_bin2bn(tmp, len, NULL))) in SRP_gN_new_init() 596 BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), in SRP_VBASE_get1_by_user() 597 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL))) in SRP_VBASE_get1_by_user() 630 N_bn_alloc = BN_bin2bn(tmp, len, NULL); in SRP_create_verifier_ex() 636 g_bn_alloc = BN_bin2bn(tmp, len, NULL); in SRP_create_verifier_ex() 654 s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); in SRP_create_verifier_ex() 658 s = BN_bin2bn(tmp2, len, NULL); in SRP_create_verifier_ex() 737 salttmp = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); in SRP_create_verifier_BN_ex()
|
| /freebsd-head/crypto/openssl/crypto/bn/ |
| HD | bn_const.c | 41 return BN_bin2bn(RFC2409_PRIME_768, sizeof(RFC2409_PRIME_768), bn); in BN_get_rfc2409_prime_768() 73 return BN_bin2bn(RFC2409_PRIME_1024, sizeof(RFC2409_PRIME_1024), bn); in BN_get_rfc2409_prime_1024()
|
| /freebsd-head/crypto/openssl/test/helpers/ |
| HD | predefined_dhparams.c | 56 p = BN_bin2bn(pdata, plen, NULL); in get_dh_from_pg() 57 g = BN_bin2bn(gdata, glen, NULL); in get_dh_from_pg() 60 if (qdata != NULL && (q = BN_bin2bn(qdata, qlen, NULL)) == NULL) in get_dh_from_pg()
|
| /freebsd-head/crypto/openssl/doc/man3/ |
| HD | BN_bn2bin.pod | 6 BN_bn2bin, BN_bin2bn, BN_bn2lebinpad, BN_lebin2bn, 16 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret); 46 BN_bin2bn() converts the positive integer in big-endian form of length 51 BN_bin2bn() except the buffer is in little-endian format. 54 BN_bin2bn() except the buffer is in native format, i.e. most significant 92 BN_bin2bn() returns the B<BIGNUM>, NULL on error.
|
| /freebsd-head/contrib/unbound/sldns/ |
| HD | keyraw.c | 220 *q = BN_bin2bn(key+offset, SHA_DIGEST_LENGTH, NULL); in sldns_key_dsa_buf_bignum() 223 *p = BN_bin2bn(key+offset, (int)length, NULL); in sldns_key_dsa_buf_bignum() 226 *g = BN_bin2bn(key+offset, (int)length, NULL); in sldns_key_dsa_buf_bignum() 229 *y = BN_bin2bn(key+offset, (int)length, NULL); in sldns_key_dsa_buf_bignum() 405 (void) BN_bin2bn(key+offset, (int)exp, *e); in sldns_key_rsa_buf_bignum() 415 (void) BN_bin2bn(key+offset, (int)(len - offset), *n); in sldns_key_rsa_buf_bignum()
|
| /freebsd-head/contrib/ldns/ |
| HD | keys.c | 282 bn = BN_bin2bn(pp, (int)ldns_rdf_size(b64rdf), NULL); in ldns_key_new_frm_fp_ecdsa_l() 788 n = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 798 e = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 808 d = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 818 p = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 828 q = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 838 dmp1 = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 848 dmq1 = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 858 iqmp = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 939 p = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_dsa_l() [all …]
|
| /freebsd-head/crypto/openssl/crypto/ec/ |
| HD | ecp_s390x_nistp.c | 106 || BN_bin2bn(param + S390X_OFF_RES_X(len), len, x) == NULL in ec_GFp_s390x_nistp_mul() 107 || BN_bin2bn(param + S390X_OFF_RES_Y(len), len, y) == NULL in ec_GFp_s390x_nistp_mul() 207 if (BN_bin2bn(param + S390X_OFF_R(len), len, sig->r) == NULL in ecdsa_s390x_nistp_sign_sig() 208 || BN_bin2bn(param + S390X_OFF_S(len), len, sig->s) == NULL) { in ecdsa_s390x_nistp_sign_sig()
|
| HD | ec_curve.c | 3164 if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data() 3165 || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data() 3166 || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) { in ec_group_new_from_data() 3202 if ((x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data() 3203 || (y = BN_bin2bn(params + 4 * param_len, param_len, NULL)) == NULL) { in ec_group_new_from_data() 3211 if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data()
|
| HD | ec_deprecated.c | 34 ret = BN_bin2bn(buf, buf_len, ret); in EC_POINT_point2bn()
|
| /freebsd-head/contrib/libfido2/src/ |
| HD | es256.c | 289 if (BN_bin2bn(k->x, sizeof(k->x), x) == NULL || in es256_pk_to_EVP_PKEY() 290 BN_bin2bn(k->y, sizeof(k->y), y) == NULL) { in es256_pk_to_EVP_PKEY() 423 BN_bin2bn(k->d, sizeof(k->d), d) == NULL) { in es256_sk_to_EVP_PKEY() 469 if ((d = BN_bin2bn(sk->d, (int)sizeof(sk->d), NULL)) == NULL || in es256_derive_pk()
|
| /freebsd-head/contrib/wpa/src/crypto/ |
| HD | crypto_openssl.c | 242 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime() 267 return BN_bin2bn(RFC3526_ORDER_1536, sizeof(RFC3526_ORDER_1536), NULL); in get_group5_order() 775 pub = BN_bin2bn(pubkey, pubkey_len, NULL); in crypto_dh_derive_secret() 776 p = BN_bin2bn(prime, prime_len, NULL); in crypto_dh_derive_secret() 787 q = BN_bin2bn(order, order_len, NULL); in crypto_dh_derive_secret() 822 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp() 823 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp() 824 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp() 1143 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed() 1147 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed() [all …]
|
| /freebsd-head/contrib/libfido2/fuzz/ |
| HD | wrapped.sym | 3 BN_bin2bn
|