Home
last modified time | relevance | path

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

1234

/freebsd-9-stable/crypto/openssl/apps/
Dtestdsa.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 …]
/freebsd-9-stable/crypto/openssl/crypto/bn/
Dbn_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()
Dbn_mpi.c120 if (BN_bin2bn(d, (int)len, a) == NULL) in BN_mpi2bn()
/freebsd-9-stable/crypto/openssl/fips/rsa/
Dfips_rsa_selftest.c118 key->n = BN_bin2bn(n, sizeof(n) - 1, key->n); in setrsakey()
119 key->e = BN_bin2bn(e, sizeof(e) - 1, key->e); in setrsakey()
120 key->d = BN_bin2bn(d, sizeof(d) - 1, key->d); in setrsakey()
121 key->p = BN_bin2bn(p, sizeof(p) - 1, key->p); in setrsakey()
122 key->q = BN_bin2bn(q, sizeof(q) - 1, key->q); in setrsakey()
123 key->dmp1 = BN_bin2bn(dmp1, sizeof(dmp1) - 1, key->dmp1); in setrsakey()
124 key->dmq1 = BN_bin2bn(dmq1, sizeof(dmq1) - 1, key->dmq1); in setrsakey()
125 key->iqmp = BN_bin2bn(iqmp, sizeof(iqmp) - 1, key->iqmp); in setrsakey()
Dfips_rsa_eay.c238 if (BN_bin2bn(buf, num, f) == NULL) in RSA_eay_public_encrypt()
412 if (BN_bin2bn(buf, num, f) == NULL) in RSA_eay_private_encrypt()
540 if (BN_bin2bn(from, (int)flen, f) == NULL) in RSA_eay_private_decrypt()
686 if (BN_bin2bn(from, flen, f) == NULL) in RSA_eay_public_decrypt()
/freebsd-9-stable/crypto/openssl/crypto/rsa/
Drsa_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); \
Drsa_eay.c215 if (BN_bin2bn(buf, num, f) == NULL) in RSA_eay_public_encrypt()
392 if (BN_bin2bn(buf, num, f) == NULL) in RSA_eay_private_encrypt()
521 if (BN_bin2bn(from, (int)flen, f) == NULL) in RSA_eay_private_decrypt()
663 if (BN_bin2bn(from, flen, f) == NULL) in RSA_eay_public_decrypt()
/freebsd-9-stable/crypto/openssl/doc/crypto/
DBN_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
/freebsd-9-stable/contrib/wpa/src/crypto/
Dcrypto_openssl.c58 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime()
275 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp()
276 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp()
277 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp()
473 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public), in dh5_derive_shared()
/freebsd-9-stable/contrib/bind9/lib/dns/
Dopenssldsa_link.c270 dsasig->r = BN_bin2bn(cp, ISC_SHA1_DIGESTLENGTH, NULL); in openssldsa_verify()
272 dsasig->s = BN_bin2bn(cp, ISC_SHA1_DIGESTLENGTH, NULL); in openssldsa_verify()
515 dsa->q = BN_bin2bn(r.base, ISC_SHA1_DIGESTLENGTH, NULL); in openssldsa_fromdns()
518 dsa->p = BN_bin2bn(r.base, p_bytes, NULL); in openssldsa_fromdns()
521 dsa->g = BN_bin2bn(r.base, p_bytes, NULL); in openssldsa_fromdns()
524 dsa->pub_key = BN_bin2bn(r.base, p_bytes, NULL); in openssldsa_fromdns()
612 bn = BN_bin2bn(priv.elements[i].data, in openssldsa_parse()
Dopenssldh_link.c407 dh->p = BN_bin2bn(r.base, plen, NULL); in openssldh_fromdns()
429 dh->g = BN_bin2bn(r.base, glen, NULL); in openssldh_fromdns()
444 dh->g = BN_bin2bn(r.base, glen, NULL); in openssldh_fromdns()
457 dh->pub_key = BN_bin2bn(r.base, publen, NULL); in openssldh_fromdns()
553 bn = BN_bin2bn(priv.elements[i].data, in openssldh_parse()
633 out = BN_bin2bn(data, strlen(str)/2, b); in BN_fromhex()
/freebsd-9-stable/crypto/openssh/
Drsa.c94 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_public_encrypt()
120 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_private_decrypt()
Dbufbn.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()
Dssh-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()
/freebsd-9-stable/crypto/openssl/crypto/ecdsa/
Decdsatest.c449 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) || in test_builtin()
450 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL)) in test_builtin()
463 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) || in test_builtin()
464 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL)) in test_builtin()
/freebsd-9-stable/crypto/openssl/fips/dsa/
Dfips_dsa_sign.c179 if (!BN_bin2bn(rbin, rlen, sig->r)) in FIPS_dsa_sig_decode()
181 if (!BN_bin2bn(in, slen, sig->s)) in FIPS_dsa_sig_decode()
Dfips_dsa_gen.c210 if (!BN_bin2bn(md, SHA_DIGEST_LENGTH, q)) in dsa_builtin_paramgen()
257 if (!BN_bin2bn(md, SHA_DIGEST_LENGTH, r0)) in dsa_builtin_paramgen()
/freebsd-9-stable/crypto/openssl/crypto/pkcs12/
Dp12_key.c187 if (!BN_bin2bn(B, v, Bpl1)) in PKCS12_key_gen_uni()
192 if (!BN_bin2bn(I + j, v, Ij)) in PKCS12_key_gen_uni()
/freebsd-9-stable/crypto/openssl/crypto/dh/
Dp192.c76 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
Dp512.c81 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
Dp1024.c88 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
/freebsd-9-stable/crypto/openssl/crypto/dsa/
Ddsa_gen.c199 if (!BN_bin2bn(md, SHA_DIGEST_LENGTH, q)) in dsa_builtin_paramgen()
245 if (!BN_bin2bn(md, SHA_DIGEST_LENGTH, r0)) in dsa_builtin_paramgen()
/freebsd-9-stable/crypto/openssl/engines/
De_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()
543 rtmp->e = BN_bin2bn(exponent, exponentLength, NULL); in ibm_4758_load_pubkey()
544 rtmp->n = BN_bin2bn(modulus, modulusFieldLength, NULL); in ibm_4758_load_pubkey()
/freebsd-9-stable/crypto/openssl/crypto/asn1/
Dx_bignum.c147 if (!BN_bin2bn(cont, len, bn)) { in bn_c2i()
/freebsd-9-stable/crypto/openssl/ssl/
Dssltest.c2047 dh->p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL); in get_dh512()
2048 dh->g = BN_bin2bn(dh512_g, sizeof(dh512_g), NULL); in get_dh512()
2088 dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); in get_dh1024()
2089 dh->g = BN_bin2bn(dh1024_g, sizeof(dh1024_g), NULL); in get_dh1024()
2149 dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); in get_dh1024dsa()
2150 dh->g = BN_bin2bn(dh1024_g, sizeof(dh1024_g), NULL); in get_dh1024dsa()

1234