Searched refs:BN_bin2bn (Results 1 - 25 of 78) sorted by relevance

1234

/freebsd-10-stable/crypto/openssl/crypto/rsa/
H A 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); \
/freebsd-10-stable/crypto/openssl/crypto/dh/
H A Dp192.c76 dh->p = BN_bin2bn(data, sizeof(data), NULL);
H A Dp512.c81 dh->p = BN_bin2bn(data, sizeof(data), NULL);
H A Dp1024.c88 dh->p = BN_bin2bn(data, sizeof(data), NULL);
/freebsd-10-stable/contrib/unbound/sldns/
H A Dkeyraw.c199 Q = BN_bin2bn(key+offset, SHA_DIGEST_LENGTH, NULL);
202 P = BN_bin2bn(key+offset, (int)length, NULL);
205 G = BN_bin2bn(key+offset, (int)length, NULL);
208 Y = BN_bin2bn(key+offset, (int)length, NULL);
259 (void) BN_bin2bn(key+offset, (int)exp, exponent);
269 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus);
/freebsd-10-stable/crypto/openssh/
H A Drsa.c102 if (BN_bin2bn(outbuf, len, out) == NULL) {
143 } else if (BN_bin2bn(outbuf, len, out) == NULL) {
H A Dsshbuf-getput-crypto.c43 if (v != NULL && BN_bin2bn(d, len, v) == NULL)
64 if (v != NULL && BN_bin2bn(d + 2, len_bytes, v) == NULL)
H A Dssh-dss.c185 if ((BN_bin2bn(sigblob, INTBLOB_LEN, sig->r) == NULL) ||
186 (BN_bin2bn(sigblob+ INTBLOB_LEN, INTBLOB_LEN, sig->s) == NULL)) {
/freebsd-10-stable/crypto/openssl/crypto/bn/
H A Dbn_mpi.c120 if (BN_bin2bn(d, (int)len, a) == NULL)
H A Dbn_rand.c188 if (!BN_bin2bn(buf, bytes, rnd))
/freebsd-10-stable/crypto/openssl/crypto/srp/
H A Dsrp_vfy.c237 if (NULL == (vinfo->v = BN_bin2bn(tmp, len, NULL)))
240 return ((vinfo->s = BN_bin2bn(tmp, len, NULL)) != NULL);
314 if ((newgN->bn = BN_bin2bn(tmp, len, NULL)))
556 (user, BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL),
557 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL)))
585 N_bn = BN_bin2bn(tmp, len, NULL);
588 g_bn = BN_bin2bn(tmp, len, NULL);
603 s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL);
607 s = BN_bin2bn(tmp2, len, NULL);
676 salttmp = BN_bin2bn(tmp
[all...]
H A Dsrptest.c63 b = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL);
78 a = BN_bin2bn(rand_tmp, sizeof(rand_tmp), NULL);
H A Dsrp_lib.c112 return BN_bin2bn(digest, sizeof(digest), NULL);
145 if (!(u = BN_bin2bn(cu, sizeof(cu), NULL)))
241 return BN_bin2bn(dig, sizeof(dig), NULL);
/freebsd-10-stable/crypto/openssl/apps/
H A Dtestdsa.h49 dsa->priv_key = BN_bin2bn(dsa512_priv, sizeof(dsa512_priv), NULL);
50 dsa->pub_key = BN_bin2bn(dsa512_pub, sizeof(dsa512_pub), NULL);
51 dsa->p = BN_bin2bn(dsa512_p, sizeof(dsa512_p), NULL);
52 dsa->q = BN_bin2bn(dsa512_q, sizeof(dsa512_q), NULL);
53 dsa->g = BN_bin2bn(dsa512_g, sizeof(dsa512_g), NULL);
118 dsa->priv_key = BN_bin2bn(dsa1024_priv, sizeof(dsa1024_priv), NULL);
119 dsa->pub_key = BN_bin2bn(dsa1024_pub, sizeof(dsa1024_pub), NULL);
120 dsa->p = BN_bin2bn(dsa1024_p, sizeof(dsa1024_p), NULL);
121 dsa->q = BN_bin2bn(dsa1024_q, sizeof(dsa1024_q), NULL);
122 dsa->g = BN_bin2bn(dsa1024_
[all...]
/freebsd-10-stable/crypto/openssl/crypto/asn1/
H A Dx_bignum.c148 if (!BN_bin2bn(cont, len, bn)) {
H A Da_enum.c176 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL)
/freebsd-10-stable/contrib/ldns/
H A Dkeys.c263 bn = BN_bin2bn(pp, (int)ldns_rdf_size(b64rdf), NULL);
577 rsa->n = BN_bin2bn((const char unsigned*)buf, i, NULL);
587 rsa->e = BN_bin2bn((const char unsigned*)buf, i, NULL);
597 rsa->d = BN_bin2bn((const char unsigned*)buf, i, NULL);
607 rsa->p = BN_bin2bn((const char unsigned*)buf, i, NULL);
617 rsa->q = BN_bin2bn((const char unsigned*)buf, i, NULL);
627 rsa->dmp1 = BN_bin2bn((const char unsigned*)buf, i, NULL);
637 rsa->dmq1 = BN_bin2bn((const char unsigned*)buf, i, NULL);
647 rsa->iqmp = BN_bin2bn((const char unsigned*)buf, i, NULL);
693 dsa->p = BN_bin2bn((cons
[all...]
H A Ddnssec.c358 Q = BN_bin2bn(key+offset, SHA_DIGEST_LENGTH, NULL);
361 P = BN_bin2bn(key+offset, (int)length, NULL);
364 G = BN_bin2bn(key+offset, (int)length, NULL);
367 Y = BN_bin2bn(key+offset, (int)length, NULL);
428 (void) BN_bin2bn(key+offset, (int)exp, exponent);
438 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus);
1770 (void) BN_bin2bn((unsigned char *) ldns_rdf_data(sig_rdf) + 1,
1777 (void) BN_bin2bn((unsigned char *) ldns_rdf_data(sig_rdf) + 21,
1846 sig->r = BN_bin2bn((const unsigned char*)ldns_rdf_data(sig_rdf),
1848 sig->s = BN_bin2bn((cons
[all...]
/freebsd-10-stable/crypto/openssl/crypto/ec/
H A Dec_print.c79 ret = BN_bin2bn(buf, buf_len, ret);
H A Dec2_oct.c358 if (!BN_bin2bn(buf + 1, field_len, x))
370 if (!BN_bin2bn(buf + 1 + field_len, field_len, y))
/freebsd-10-stable/crypto/openssl/crypto/ecdsa/
H A Decdsatest.c450 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) ||
451 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL))
464 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) ||
465 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL))
/freebsd-10-stable/crypto/openssl/crypto/pkcs12/
H A Dp12_key.c188 if (!BN_bin2bn(B, v, Bpl1))
193 if (!BN_bin2bn(I + j, v, Ij))
/freebsd-10-stable/crypto/openssl/crypto/dsa/
H A Ddsa_gen.c226 if (!BN_bin2bn(md, qsize, q))
273 if (!BN_bin2bn(md, qsize, r0))
/freebsd-10-stable/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c57 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL);
322 bn_base = BN_bin2bn(base, base_len, NULL);
323 bn_exp = BN_bin2bn(power, power_len, NULL);
324 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL);
524 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL);
528 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL);
555 pub_key = BN_bin2bn(wpabuf_head(peer_public), wpabuf_len(peer_public),
/freebsd-10-stable/crypto/openssl/engines/
H A De_4758cca.c468 rtmp->e = BN_bin2bn(exponent, exponentLength, NULL);
469 rtmp->n = BN_bin2bn(modulus, modulusFieldLength, NULL);
539 rtmp->e = BN_bin2bn(exponent, exponentLength, NULL);
540 rtmp->n = BN_bin2bn(modulus, modulusFieldLength, NULL);

Completed in 235 milliseconds

1234