Home
last modified time | relevance | path

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

1234

/freebsd/crypto/openssl/test/
H A Drsa_mp_test.c132 BN_bin2bn(n, sizeof(n) - 1, NULL), in key2048_key()
133 BN_bin2bn(e, sizeof(e) - 1, NULL), in key2048_key()
134 BN_bin2bn(d, sizeof(d) - 1, NULL)), in key2048_key()
147 BN_bin2bn(p, sizeof(p) - 1, NULL), in key2048p3_v1()
148 BN_bin2bn(q, sizeof(q) - 1, NULL)), in key2048p3_v1()
153 BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL), in key2048p3_v1()
154 BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL), in key2048p3_v1()
155 BN_bin2bn(iqmp, sizeof(iqmp) - 1, in key2048p3_v1()
166 pris[0] = BN_bin2bn(ex_prime, sizeof(ex_prime) - 1, NULL); in key2048p3_v1()
167 exps[0] = BN_bin2bn(ex_exponent, sizeof(ex_exponent) - 1, NULL); in key2048p3_v1()
[all …]
H A Drsa_test.c34 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)); \
361 if (TEST_true(RSA_set0_key(key, BN_bin2bn(num, bytes, NULL), in test_rsa_security_bit()
362 BN_bin2bn(num, bytes, NULL), NULL)) in test_rsa_security_bit()
[all …]
H A Ddsatest.c390 if (!TEST_ptr(p_in = BN_bin2bn(expected_p, sizeof(expected_p), NULL)) in dsa_keygen_test()
391 || !TEST_ptr(q_in = BN_bin2bn(expected_q, sizeof(expected_q), NULL)) in dsa_keygen_test()
392 || !TEST_ptr(g_in = BN_bin2bn(expected_g, sizeof(expected_g), NULL))) in dsa_keygen_test()
500 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) in test_dsa_sig_infinite_loop()
501 || !TEST_ptr(q = BN_bin2bn(out_q, sizeof(out_q), NULL)) in test_dsa_sig_infinite_loop()
502 || !TEST_ptr(g = BN_bin2bn(out_g, sizeof(out_g), NULL)) in test_dsa_sig_infinite_loop()
503 || !TEST_ptr(pub = BN_bin2bn(out_pub, sizeof(out_pub), NULL)) in test_dsa_sig_infinite_loop()
504 || !TEST_ptr(priv = BN_bin2bn(out_priv, sizeof(out_priv), NULL)) in test_dsa_sig_infinite_loop()
589 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) in test_dsa_sig_neg_param()
590 || !TEST_ptr(q = BN_bin2bn(out_q, sizeof(out_q), NULL)) in test_dsa_sig_neg_param()
[all …]
H A Devp_pkey_provided_test.c589 || !TEST_ptr(n = BN_bin2bn(n_data, sizeof(n_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
590 || !TEST_ptr(e = BN_bin2bn(e_data, sizeof(e_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
591 || !TEST_ptr(d = BN_bin2bn(d_data, sizeof(d_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
592 || !TEST_ptr(p = BN_bin2bn(p_data, sizeof(p_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
593 || !TEST_ptr(q = BN_bin2bn(q_data, sizeof(q_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
594 || !TEST_ptr(dmp1 = BN_bin2bn(dmp1_data, sizeof(dmp1_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
595 || !TEST_ptr(dmq1 = BN_bin2bn(dmq1_data, sizeof(dmq1_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
596 || !TEST_ptr(iqmp = BN_bin2bn(iqmp_data, sizeof(iqmp_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
761 || !TEST_ptr(n = BN_bin2bn(n_data, sizeof(n_data), NULL)) in test_fromdata_rsa_derive_from_pq_multiprime()
762 || !TEST_ptr(e = BN_bin2bn(e_data, sizeof(e_data), NULL)) in test_fromdata_rsa_derive_from_pq_multiprime()
[all …]
H A Ddsa_no_digest_size_test.c103 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()
H A Dffc_internal_test.c183 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()
H A Dacvp_test.c323 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL)) in ecdsa_sigver_test()
324 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL)) in ecdsa_sigver_test()
667 || !TEST_ptr(BN_bin2bn(p, p_len, p_bn)) in dsa_create_pkey()
676 || !TEST_ptr(BN_bin2bn(q, q_len, q_bn)) in dsa_create_pkey()
682 || !TEST_ptr(BN_bin2bn(g, g_len, g_bn)) in dsa_create_pkey()
700 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn)) in dsa_create_pkey()
844 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL)) in dsa_sigver_test()
845 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL)) in dsa_sigver_test()
1172 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn)) in dh_create_pkey()
1179 || !TEST_ptr(BN_bin2bn(priv, priv_len, priv_bn)) in dh_create_pkey()
[all …]
H A Dsrptest.c62 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()
H A Dendecode_test.c1152 && TEST_ptr(BN_bin2bn(prime_data, sizeof(prime_data), prime)) in do_create_ec_explicit_prime_params()
1153 && TEST_ptr(BN_bin2bn(a_data, sizeof(a_data), a)) in do_create_ec_explicit_prime_params()
1154 && TEST_ptr(BN_bin2bn(b_data, sizeof(b_data), b)) in do_create_ec_explicit_prime_params()
1155 && TEST_ptr(BN_bin2bn(order_data, sizeof(order_data), order)) in do_create_ec_explicit_prime_params()
1269 && TEST_ptr(BN_bin2bn(poly_data, sizeof(poly_data), poly)) in do_create_ec_explicit_trinomial_params()
1270 && TEST_ptr(BN_bin2bn(a_data, sizeof(a_data), a)) in do_create_ec_explicit_trinomial_params()
1271 && TEST_ptr(BN_bin2bn(b_data, sizeof(b_data), b)) in do_create_ec_explicit_trinomial_params()
1272 && TEST_ptr(BN_bin2bn(order_data, sizeof(order_data), order)) in do_create_ec_explicit_trinomial_params()
1273 && TEST_ptr(BN_bin2bn(cofactor_data, sizeof(cofactor_data), cofactor)) in do_create_ec_explicit_trinomial_params()
/freebsd/crypto/openssl/apps/
H A Dtestdsa.h1461 priv_key = BN_bin2bn(dsa_t.priv, dsa_t.priv_l, NULL); in get_dsa()
1462 pub_key = BN_bin2bn(dsa_t.pub, dsa_t.pub_l, NULL); in get_dsa()
1463 p = BN_bin2bn(dsa_t.p, dsa_t.p_l, NULL); in get_dsa()
1464 q = BN_bin2bn(dsa_t.q, dsa_t.q_l, NULL); in get_dsa()
1465 g = BN_bin2bn(dsa_t.g, dsa_t.g_l, NULL); in get_dsa()
/freebsd/crypto/openssl/demos/pkey/
H A DEVP_PKEY_DSA_paramfromdata.c31 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/crypto/openssl/fuzz/
H A Dbignum.c65 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()
H A Dbndiv.c72 OPENSSL_assert(BN_bin2bn(buf, l1, b1) == b1); in FuzzerTestOneInput()
74 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput()
/freebsd/crypto/openssl/crypto/srp/
H A Dsrp_vfy.c235 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL))) in SRP_user_pwd_set_sv()
240 vinfo->s = BN_bin2bn(tmp, len, NULL); in SRP_user_pwd_set_sv()
327 if ((newgN->bn = BN_bin2bn(tmp, len, NULL))) in SRP_gN_new_init()
597 BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), in SRP_VBASE_get1_by_user()
598 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()
734 salttmp = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); in SRP_create_verifier_BN_ex()
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_const.c124 return BN_bin2bn(RFC2409_PRIME_768, sizeof(RFC2409_PRIME_768), bn); in BN_get_rfc2409_prime_768()
268 return BN_bin2bn(RFC2409_PRIME_1024, sizeof(RFC2409_PRIME_1024), bn); in BN_get_rfc2409_prime_1024()
H A Dbn_s390x.c48 if (BN_bin2bn(me.outputdata, size, r) != NULL) in s390x_mod_exp_hw()
125 if (BN_bin2bn(crt.outputdata, crt.outputdatalength, r) != NULL) in s390x_crt()
/freebsd/crypto/openssl/test/helpers/
H A Dpredefined_dhparams.c56 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/crypto/openssl/doc/man3/
H A DBN_bn2bin.pod5 BN_bn2binpad, BN_signed_bn2bin, BN_bn2bin, BN_bin2bn, BN_signed_bin2bn,
18 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
60 BN_bin2bn() converts the positive integer in big-endian form of length
69 BN_bn2binpad(), BN_signed_bn2bin() and BN_bin2bn() except the buffer is in
73 to BN_bn2binpad(), BN_signed_bn2bin() and BN_bin2bn() except the buffer is
111 BN_bin2bn() returns the B<BIGNUM>, NULL on error.
/freebsd/contrib/unbound/sldns/
H A Dkeyraw.c220 *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/contrib/ldns/
H A Dkeys.c282 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/crypto/openssl/crypto/ec/
H A Decp_s390x_nistp.c110 || BN_bin2bn(param + S390X_OFF_RES_X(len), len, x) == NULL in ec_GFp_s390x_nistp_mul()
111 || BN_bin2bn(param + S390X_OFF_RES_Y(len), len, y) == NULL in ec_GFp_s390x_nistp_mul()
213 if (BN_bin2bn(param + S390X_OFF_R(len), len, sig->r) == NULL in ecdsa_s390x_nistp_sign_sig()
214 || BN_bin2bn(param + S390X_OFF_S(len), len, sig->s) == NULL) { in ecdsa_s390x_nistp_sign_sig()
H A Dec_curve.c3074 if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data()
3075 || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data()
3076 || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) { in ec_group_new_from_data()
3110 if ((x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data()
3111 || (y = BN_bin2bn(params + 4 * param_len, param_len, NULL)) == NULL) { in ec_group_new_from_data()
3119 if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL in ec_group_new_from_data()
/freebsd/crypto/openssl/crypto/
H A Ddeterministic_nonce.c34 if (BN_bin2bn(in, (int)inlen, out) == NULL) in bits2int()
61 if (BN_bin2bn(in, (int)inlen, out) == NULL) in bits2int_consttime()
/freebsd/contrib/libfido2/src/
H A Des256.c289 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()
H A Drs256.c133 if (BN_bin2bn(k->n, sizeof(k->n), n) == NULL || in rs256_pk_to_EVP_PKEY()
134 BN_bin2bn(k->e, sizeof(k->e), e) == NULL) { in rs256_pk_to_EVP_PKEY()

1234