Home
last modified time | relevance | path

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

1234

/NextBSD/crypto/openssl/apps/
HDtestdsa.h49 dsa->priv_key = BN_bin2bn(dsa512_priv, sizeof(dsa512_priv), NULL); in get_dsa512()
50 dsa->pub_key = BN_bin2bn(dsa512_pub, sizeof(dsa512_pub), NULL); in get_dsa512()
51 dsa->p = BN_bin2bn(dsa512_p, sizeof(dsa512_p), NULL); in get_dsa512()
52 dsa->q = BN_bin2bn(dsa512_q, sizeof(dsa512_q), NULL); in get_dsa512()
53 dsa->g = BN_bin2bn(dsa512_g, sizeof(dsa512_g), NULL); in get_dsa512()
118 dsa->priv_key = BN_bin2bn(dsa1024_priv, sizeof(dsa1024_priv), NULL); in get_dsa1024()
119 dsa->pub_key = BN_bin2bn(dsa1024_pub, sizeof(dsa1024_pub), NULL); in get_dsa1024()
120 dsa->p = BN_bin2bn(dsa1024_p, sizeof(dsa1024_p), NULL); in get_dsa1024()
121 dsa->q = BN_bin2bn(dsa1024_q, sizeof(dsa1024_q), NULL); in get_dsa1024()
122 dsa->g = BN_bin2bn(dsa1024_g, sizeof(dsa1024_g), NULL); in get_dsa1024()
[all …]
/NextBSD/crypto/openssl/crypto/bn/
HDbn_const.c31 return BN_bin2bn(RFC2409_PRIME_768, sizeof(RFC2409_PRIME_768), bn); in get_rfc2409_prime_768()
63 return BN_bin2bn(RFC2409_PRIME_1024, sizeof(RFC2409_PRIME_1024), bn); in get_rfc2409_prime_1024()
103 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), bn); in get_rfc3526_prime_1536()
150 return BN_bin2bn(RFC3526_PRIME_2048, sizeof(RFC3526_PRIME_2048), bn); in get_rfc3526_prime_2048()
213 return BN_bin2bn(RFC3526_PRIME_3072, sizeof(RFC3526_PRIME_3072), bn); in get_rfc3526_prime_3072()
292 return BN_bin2bn(RFC3526_PRIME_4096, sizeof(RFC3526_PRIME_4096), bn); in get_rfc3526_prime_4096()
403 return BN_bin2bn(RFC3526_PRIME_6144, sizeof(RFC3526_PRIME_6144), bn); in get_rfc3526_prime_6144()
546 return BN_bin2bn(RFC3526_PRIME_8192, sizeof(RFC3526_PRIME_8192), bn); in get_rfc3526_prime_8192()
HDbn_mpi.c120 if (BN_bin2bn(d, (int)len, a) == NULL) in BN_mpi2bn()
/NextBSD/crypto/openssl/crypto/rsa/
HDrsa_test.c22 key->n = BN_bin2bn(n, sizeof(n)-1, key->n); \
23 key->e = BN_bin2bn(e, sizeof(e)-1, key->e); \
24 key->d = BN_bin2bn(d, sizeof(d)-1, key->d); \
25 key->p = BN_bin2bn(p, sizeof(p)-1, key->p); \
26 key->q = BN_bin2bn(q, sizeof(q)-1, key->q); \
27 key->dmp1 = BN_bin2bn(dmp1, sizeof(dmp1)-1, key->dmp1); \
28 key->dmq1 = BN_bin2bn(dmq1, sizeof(dmq1)-1, key->dmq1); \
29 key->iqmp = BN_bin2bn(iqmp, sizeof(iqmp)-1, key->iqmp); \
/NextBSD/contrib/unbound/sldns/
HDkeyraw.c199 Q = BN_bin2bn(key+offset, SHA_DIGEST_LENGTH, NULL); in sldns_key_buf2dsa_raw()
202 P = BN_bin2bn(key+offset, (int)length, NULL); in sldns_key_buf2dsa_raw()
205 G = BN_bin2bn(key+offset, (int)length, NULL); in sldns_key_buf2dsa_raw()
208 Y = BN_bin2bn(key+offset, (int)length, NULL); in sldns_key_buf2dsa_raw()
259 (void) BN_bin2bn(key+offset, (int)exp, exponent); in sldns_key_buf2rsa_raw()
269 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus); in sldns_key_buf2rsa_raw()
/NextBSD/crypto/openssl/crypto/srp/
HDsrp_vfy.c237 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL))) in SRP_user_pwd_set_sv()
240 return ((vinfo->s = BN_bin2bn(tmp, len, NULL)) != NULL); in SRP_user_pwd_set_sv()
296 if ((newgN->bn = BN_bin2bn(tmp, len, NULL))) in SRP_gN_new_init()
509 (user, BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), in SRP_VBASE_get_by_user()
510 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL))) in SRP_VBASE_get_by_user()
538 N_bn = BN_bin2bn(tmp, len, NULL); in SRP_create_verifier()
541 g_bn = BN_bin2bn(tmp, len, NULL); in SRP_create_verifier()
556 s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); in SRP_create_verifier()
560 s = BN_bin2bn(tmp2, len, NULL); in SRP_create_verifier()
629 salttmp = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL); in SRP_create_verifier_BN()
HDsrptest.c63 b = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); in run_srp()
78 a = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL); in run_srp()
HDsrp_lib.c112 return BN_bin2bn(digest, sizeof(digest), NULL); in srp_Calc_k()
145 if (!(u = BN_bin2bn(cu, sizeof(cu), NULL))) in SRP_Calc_u()
238 return BN_bin2bn(dig, sizeof(dig), NULL); in SRP_Calc_x()
/NextBSD/crypto/openssl/doc/crypto/
HDBN_bn2bin.pod5 BN_bn2bin, BN_bin2bn, BN_bn2hex, BN_bn2dec, BN_hex2bn, BN_dec2bn,
13 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
32 BN_bin2bn() converts the positive integer in big-endian form of length
68 BN_bin2bn() returns the B<BIGNUM>, NULL on error.
89 BN_bn2bin(), BN_bin2bn(), BN_print_fp() and BN_print() are available
/NextBSD/contrib/ldns/
HDkeys.c263 bn = BN_bin2bn(pp, (int)ldns_rdf_size(b64rdf), NULL); in ldns_key_new_frm_fp_ecdsa_l()
577 rsa->n = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
587 rsa->e = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
597 rsa->d = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
607 rsa->p = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
617 rsa->q = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
627 rsa->dmp1 = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
637 rsa->dmq1 = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
647 rsa->iqmp = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l()
693 dsa->p = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_dsa_l()
[all …]
HDdnssec.c358 Q = BN_bin2bn(key+offset, SHA_DIGEST_LENGTH, NULL); in ldns_key_buf2dsa_raw()
361 P = BN_bin2bn(key+offset, (int)length, NULL); in ldns_key_buf2dsa_raw()
364 G = BN_bin2bn(key+offset, (int)length, NULL); in ldns_key_buf2dsa_raw()
367 Y = BN_bin2bn(key+offset, (int)length, NULL); in ldns_key_buf2dsa_raw()
428 (void) BN_bin2bn(key+offset, (int)exp, exponent); in ldns_key_buf2rsa_raw()
438 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus); in ldns_key_buf2rsa_raw()
1770 (void) BN_bin2bn((unsigned char *) ldns_rdf_data(sig_rdf) + 1, in ldns_convert_dsa_rrsig_rdf2asn1()
1777 (void) BN_bin2bn((unsigned char *) ldns_rdf_data(sig_rdf) + 21, in ldns_convert_dsa_rrsig_rdf2asn1()
1846 sig->r = BN_bin2bn((const unsigned char*)ldns_rdf_data(sig_rdf), in ldns_convert_ecdsa_rrsig_rdf2asn1()
1848 sig->s = BN_bin2bn((const unsigned char*)ldns_rdf_data(sig_rdf)+bnsize, in ldns_convert_ecdsa_rrsig_rdf2asn1()
/NextBSD/crypto/openssl/crypto/dh/
HDdhtest.c516 dhA->priv_key = BN_bin2bn(td->xA, td->xA_len, NULL); in run_rfc5114_tests()
517 dhA->pub_key = BN_bin2bn(td->yA, td->yA_len, NULL); in run_rfc5114_tests()
519 dhB->priv_key = BN_bin2bn(td->xB, td->xB_len, NULL); in run_rfc5114_tests()
520 dhB->pub_key = BN_bin2bn(td->yB, td->yB_len, NULL); in run_rfc5114_tests()
HDp512.c81 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
HDp1024.c88 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
HDp192.c76 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
/NextBSD/crypto/openssl/crypto/ec/
HDec_curve.c3075 if (!(p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) in ec_group_new_from_data()
3076 || !(a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) in ec_group_new_from_data()
3077 || !(b = BN_bin2bn(params + 2 * param_len, param_len, NULL))) { in ec_group_new_from_data()
3111 if (!(x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) in ec_group_new_from_data()
3112 || !(y = BN_bin2bn(params + 4 * param_len, param_len, NULL))) { in ec_group_new_from_data()
3120 if (!(order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) in ec_group_new_from_data()
HDec2_oct.c358 if (!BN_bin2bn(buf + 1, field_len, x)) in ec_GF2m_simple_oct2point()
370 if (!BN_bin2bn(buf + 1 + field_len, field_len, y)) in ec_GF2m_simple_oct2point()
/NextBSD/crypto/openssh/
HDrsa.c94 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_public_encrypt()
120 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_private_decrypt()
HDbufbn.c127 if (BN_bin2bn(bin, bytes, value) == NULL) { in buffer_get_bignum_ret()
215 if (BN_bin2bn(bin, len, value) == NULL) { in buffer_get_bignum2_ret()
HDssh-dss.c166 if ((BN_bin2bn(sigblob, INTBLOB_LEN, sig->r) == NULL) || in ssh_dss_verify()
167 (BN_bin2bn(sigblob+ INTBLOB_LEN, INTBLOB_LEN, sig->s) == NULL)) in ssh_dss_verify()
/NextBSD/contrib/wpa/src/crypto/
HDcrypto_openssl.c55 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime()
402 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp()
403 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp()
404 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp()
608 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed()
612 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed()
639 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), in dh5_derive_shared()
950 BIGNUM *bn = BN_bin2bn(buf, len, NULL); in crypto_bignum_init_set()
1331 x = BN_bin2bn(val, len, NULL); in crypto_ec_point_from_bin()
1332 y = BN_bin2bn(val + len, len, NULL); in crypto_ec_point_from_bin()
/NextBSD/crypto/openssl/crypto/ecdsa/
HDecdsatest.c450 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) || in test_builtin()
451 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL)) in test_builtin()
464 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) || in test_builtin()
465 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL)) in test_builtin()
/NextBSD/crypto/openssl/crypto/dsa/
HDdsa_gen.c228 if (!BN_bin2bn(md, qsize, q)) in dsa_builtin_paramgen()
275 if (!BN_bin2bn(md, qsize, r0)) in dsa_builtin_paramgen()
512 if (!BN_bin2bn(pmd, qsize, q)) in dsa_builtin_paramgen2()
568 if (!BN_bin2bn(md, mdsize, r0)) in dsa_builtin_paramgen2()
655 if (!BN_bin2bn(md, mdsize, test)) in dsa_builtin_paramgen2()
/NextBSD/crypto/openssl/crypto/pkcs12/
HDp12_key.c188 if (!BN_bin2bn(B, v, Bpl1)) in PKCS12_key_gen_uni()
193 if (!BN_bin2bn(I + j, v, Ij)) in PKCS12_key_gen_uni()
/NextBSD/crypto/openssl/engines/
HDe_4758cca.c468 rtmp->e = BN_bin2bn(exponent, exponentLength, NULL); in ibm_4758_load_privkey()
469 rtmp->n = BN_bin2bn(modulus, modulusFieldLength, NULL); in ibm_4758_load_privkey()
539 rtmp->e = BN_bin2bn(exponent, exponentLength, NULL); in ibm_4758_load_pubkey()
540 rtmp->n = BN_bin2bn(modulus, modulusFieldLength, NULL); in ibm_4758_load_pubkey()

1234