| /freebsd-9-stable/crypto/openssl/apps/ |
| D | testdsa.h | 49 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/ |
| D | bn_const.c | 31 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()
|
| D | bn_mpi.c | 120 if (BN_bin2bn(d, (int)len, a) == NULL) in BN_mpi2bn()
|
| /freebsd-9-stable/crypto/openssl/fips/rsa/ |
| D | fips_rsa_selftest.c | 118 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()
|
| D | fips_rsa_eay.c | 238 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/ |
| D | rsa_test.c | 22 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); \
|
| D | rsa_eay.c | 215 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/ |
| D | BN_bn2bin.pod | 5 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/ |
| D | crypto_openssl.c | 58 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/ |
| D | openssldsa_link.c | 270 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()
|
| D | openssldh_link.c | 407 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/ |
| D | rsa.c | 94 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_public_encrypt() 120 if (BN_bin2bn(outbuf, len, out) == NULL) in rsa_private_decrypt()
|
| D | bufbn.c | 127 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()
|
| D | ssh-dss.c | 166 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/ |
| D | ecdsatest.c | 449 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/ |
| D | fips_dsa_sign.c | 179 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()
|
| D | fips_dsa_gen.c | 210 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/ |
| D | p12_key.c | 187 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/ |
| D | p192.c | 76 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
|
| D | p512.c | 81 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
|
| D | p1024.c | 88 dh->p = BN_bin2bn(data, sizeof(data), NULL); in main()
|
| /freebsd-9-stable/crypto/openssl/crypto/dsa/ |
| D | dsa_gen.c | 199 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/ |
| D | e_4758cca.c | 468 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/ |
| D | x_bignum.c | 147 if (!BN_bin2bn(cont, len, bn)) { in bn_c2i()
|
| /freebsd-9-stable/crypto/openssl/ssl/ |
| D | ssltest.c | 2047 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()
|