/freebsd-current/crypto/openssl/test/ |
H A D | rsa_mp_test.c | 142 BN_bin2bn(n, sizeof(n) - 1, NULL), 143 BN_bin2bn(e, sizeof(e) - 1, NULL), 144 BN_bin2bn(d, sizeof(d) - 1, NULL)), 1)) 157 BN_bin2bn(p, sizeof(p) - 1, NULL), 158 BN_bin2bn(q, sizeof(q) - 1, NULL)), 1)) 162 BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL), 163 BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL), 164 BN_bin2bn(iqmp, sizeof(iqmp) - 1, 174 pris[0] = BN_bin2bn(ex_prime, sizeof(ex_prime) - 1, NULL); 175 exps[0] = BN_bin2bn(ex_exponen [all...] |
H A D | 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), 386 BN_bin2bn(nu [all...] |
H A D | dsatest.c | 244 if (!TEST_ptr(p_in = BN_bin2bn(expected_p, sizeof(expected_p), NULL)) 245 || !TEST_ptr(q_in = BN_bin2bn(expected_q, sizeof(expected_q), NULL)) 246 || !TEST_ptr(g_in = BN_bin2bn(expected_g, sizeof(expected_g), NULL))) 353 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) 354 || !TEST_ptr(q = BN_bin2bn(out_q, sizeof(out_q), NULL)) 355 || !TEST_ptr(g = BN_bin2bn(out_g, sizeof(out_g), NULL)) 356 || !TEST_ptr(pub = BN_bin2bn(out_pub, sizeof(out_pub), NULL)) 357 || !TEST_ptr(priv = BN_bin2bn(out_priv, sizeof(out_priv), NULL)) 439 if (!TEST_ptr(p = BN_bin2bn(out_p, sizeof(out_p), NULL)) 440 || !TEST_ptr(q = BN_bin2bn(out_ [all...] |
H A D | acvp_test.c | 290 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL)) 291 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL)) 466 || !TEST_ptr(BN_bin2bn(p, p_len, p_bn)) 475 || !TEST_ptr(BN_bin2bn(q, q_len, q_bn)) 481 || !TEST_ptr(BN_bin2bn(g, g_len, g_bn)) 499 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn)) 638 || !TEST_ptr(rbn = BN_bin2bn(tst->r, tst->r_len, NULL)) 639 || !TEST_ptr(sbn = BN_bin2bn(tst->s, tst->s_len, NULL)) 914 || !TEST_ptr(BN_bin2bn(pub, pub_len, pub_bn)) 921 || !TEST_ptr(BN_bin2bn(pri [all...] |
H A D | srptest.c | 62 b = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); 76 a = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL);
|
H A D | dsa_no_digest_size_test.c | 103 if (!DSA_set0_pqg(dsa, p = BN_bin2bn(dsap_2048, sizeof(dsap_2048), NULL), 104 q = BN_bin2bn(dsaq_2048, sizeof(dsaq_2048), NULL), 105 g = BN_bin2bn(dsag_2048, sizeof(dsag_2048), NULL))) {
|
/freebsd-current/crypto/openssl/demos/pkey/ |
H A D | EVP_PKEY_DSA_paramfromdata.c | 31 p = BN_bin2bn(dsa_p, sizeof(dsa_p), NULL); 32 q = BN_bin2bn(dsa_q, sizeof(dsa_q), NULL); 33 g = BN_bin2bn(dsa_g, sizeof(dsa_g), NULL);
|
/freebsd-current/crypto/openssl/fuzz/ |
H A D | bignum.c | 65 OPENSSL_assert(BN_bin2bn(buf, l1, b1) == b1); 67 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); 68 OPENSSL_assert(BN_bin2bn(buf + l1 + l2, l3, b3) == b3);
|
H A D | bndiv.c | 72 OPENSSL_assert(BN_bin2bn(buf, l1, b1) == b1); 74 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2);
|
/freebsd-current/crypto/openssl/crypto/bn/ |
H A D | bn_mpi.c | 75 if (BN_bin2bn(d, (int)len, a) == NULL) {
|
H A D | bn_const.c | 41 return BN_bin2bn(RFC2409_PRIME_768, sizeof(RFC2409_PRIME_768), bn); 73 return BN_bin2bn(RFC2409_PRIME_1024, sizeof(RFC2409_PRIME_1024), bn);
|
H A D | bn_rand.c | 89 if (!BN_bin2bn(buf, bytes, rnd)) 314 if (!BN_bin2bn(k_bytes, num_k_bytes, out))
|
/freebsd-current/crypto/openssl/crypto/ec/ |
H A D | ec_deprecated.c | 34 ret = BN_bin2bn(buf, buf_len, ret);
|
H A D | ecp_s390x_nistp.c | 106 || BN_bin2bn(param + S390X_OFF_RES_X(len), len, x) == NULL 107 || BN_bin2bn(param + S390X_OFF_RES_Y(len), len, y) == NULL 207 if (BN_bin2bn(param + S390X_OFF_R(len), len, sig->r) == NULL 208 || BN_bin2bn(param + S390X_OFF_S(len), len, sig->s) == NULL) {
|
H A D | ec2_oct.c | 335 if (!BN_bin2bn(buf + 1, field_len, x)) 346 if (!BN_bin2bn(buf + 1 + field_len, field_len, y))
|
/freebsd-current/crypto/openssl/crypto/srp/ |
H A D | srp_vfy.c | 236 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL))) 241 vinfo->s = BN_bin2bn(tmp, len, NULL); 328 if ((newgN->bn = BN_bin2bn(tmp, len, NULL))) 594 BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), 595 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL))) 628 N_bn_alloc = BN_bin2bn(tmp, len, NULL); 634 g_bn_alloc = BN_bin2bn(tmp, len, NULL); 652 s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); 656 s = BN_bin2bn(tmp2, len, NULL); 735 salttmp = BN_bin2bn(tmp [all...] |
/freebsd-current/contrib/unbound/sldns/ |
H A D | keyraw.c | 219 *q = BN_bin2bn(key+offset, SHA_DIGEST_LENGTH, NULL); 222 *p = BN_bin2bn(key+offset, (int)length, NULL); 225 *g = BN_bin2bn(key+offset, (int)length, NULL); 228 *y = BN_bin2bn(key+offset, (int)length, NULL); 403 (void) BN_bin2bn(key+offset, (int)exp, *e); 413 (void) BN_bin2bn(key+offset, (int)(len - offset), *n);
|
/freebsd-current/contrib/libfido2/src/ |
H A D | es256.c | 289 if (BN_bin2bn(k->x, sizeof(k->x), x) == NULL || 290 BN_bin2bn(k->y, sizeof(k->y), y) == NULL) { 291 fido_log_debug("%s: BN_bin2bn", __func__); 423 BN_bin2bn(k->d, sizeof(k->d), d) == NULL) { 424 fido_log_debug("%s: BN_bin2bn", __func__); 469 if ((d = BN_bin2bn(sk->d, (int)sizeof(sk->d), NULL)) == NULL ||
|
H A D | rs256.c | 167 if (BN_bin2bn(k->n, sizeof(k->n), n) == NULL || 168 BN_bin2bn(k->e, sizeof(k->e), e) == NULL) { 169 fido_log_debug("%s: BN_bin2bn", __func__);
|
H A D | es384.c | 132 if (BN_bin2bn(k->x, sizeof(k->x), x) == NULL || 133 BN_bin2bn(k->y, sizeof(k->y), y) == NULL) { 134 fido_log_debug("%s: BN_bin2bn", __func__);
|
/freebsd-current/contrib/ldns/ |
H A D | keys.c | 282 bn = BN_bin2bn(pp, (int)ldns_rdf_size(b64rdf), NULL); 788 n = BN_bin2bn((const char unsigned*)buf, i, NULL); 798 e = BN_bin2bn((const char unsigned*)buf, i, NULL); 808 d = BN_bin2bn((const char unsigned*)buf, i, NULL); 818 p = BN_bin2bn((const char unsigned*)buf, i, NULL); 828 q = BN_bin2bn((const char unsigned*)buf, i, NULL); 838 dmp1 = BN_bin2bn((const char unsigned*)buf, i, NULL); 848 dmq1 = BN_bin2bn((const char unsigned*)buf, i, NULL); 858 iqmp = BN_bin2bn((const char unsigned*)buf, i, NULL); 939 p = BN_bin2bn((cons [all...] |
/freebsd-current/crypto/openssl/crypto/sm2/ |
H A D | sm2_sign.c | 186 e = BN_bin2bn(z, md_size, NULL); 445 e = BN_bin2bn(dgst, dgstlen, NULL); 499 e = BN_bin2bn(dgst, dgstlen, NULL);
|
/freebsd-current/crypto/openssl/test/helpers/ |
H A D | predefined_dhparams.c | 56 p = BN_bin2bn(pdata, plen, NULL); 57 g = BN_bin2bn(gdata, glen, NULL); 60 if (qdata != NULL && (q = BN_bin2bn(qdata, qlen, NULL)) == NULL)
|
/freebsd-current/crypto/openssh/ |
H A D | kexdh.c | 100 BN_bin2bn(kbuf, kout, shared_secret) == NULL) {
|
/freebsd-current/crypto/openssl/crypto/asn1/ |
H A D | x_bignum.c | 123 if (!BN_bin2bn(cont, len, bn)) {
|