Home
last modified time | relevance | path

Searched refs:BIGNUM (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/common/bignum/
H A Dbignum.h110 BIGNUM *ma, BIGNUM *e, BIGNUM *n,
141 BIG_ERR_CODE big_modexp(BIGNUM *result, BIGNUM *a, BIGNUM *e,
142 BIGNUM *n, BIGNUM *n_rr);
146 BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq,
149 BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq,
154 BIGNUM *aa, BIGNUM *bb);
156 BIGNUM *m, BIGNUM *e);
157 BIG_ERR_CODE big_add(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
159 BIG_ERR_CODE big_mul(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
166 BIG_ERR_CODE big_sub(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
[all …]
H A Dbignumimpl.c670 big_sub(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_sub()
714 big_add(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_add()
1020 big_div_pos(BIGNUM *result, BIGNUM *remainder, BIGNUM *aa, BIGNUM *bb) in big_div_pos()
1891 big_modexp_ncp_int(BIGNUM *result, BIGNUM *ma, BIGNUM *e, BIGNUM *n, in big_modexp_ncp_int()
2044 big_modexp_ncp_float(BIGNUM *result, BIGNUM *ma, BIGNUM *e, BIGNUM *n, in big_modexp_ncp_float()
2298 big_modexp_ext(BIGNUM *result, BIGNUM *a, BIGNUM *e, BIGNUM *n, BIGNUM *n_rr, in big_modexp_ext()
2384 big_modexp(BIGNUM *result, BIGNUM *a, BIGNUM *e, BIGNUM *n, BIGNUM *n_rr) in big_modexp()
2392 BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq, in big_modexp_crt_ext()
2492 BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq, in big_modexp_crt()
2692 big_Lucas(BIGNUM *Lkminus1, BIGNUM *Lk, BIGNUM *p, BIGNUM *k, BIGNUM *n) in big_Lucas()
[all …]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dcompat.h22 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
23 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
24 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
25 void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e,
29 const BIGNUM **dmq1, const BIGNUM **iqmp);
33 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
36 int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);
39 int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);
43 int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);
47 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
[all …]
H A Dcompat.c29 RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) in RSA_set0_key()
56 RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q) in RSA_set0_factors()
78 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params()
106 RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) in RSA_get0_key()
150 DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) in DSA_set0_pqg()
186 DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) in DSA_set0_key()
218 DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s) in DSA_SIG_set0()
247 ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) in ECDSA_SIG_set0()
259 DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) in DH_get0_pqg()
270 DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) in DH_set0_pqg()
[all …]
H A Dopenssl_spi.c184 static KMF_RETURN sslBN2KMFBN(BIGNUM *, KMF_BIGINT *);
502 BIGNUM *bn; in check_cert()
794 BIGNUM *qminus1 = NULL; in readAltFormatPrivateKey()
1459 BIGNUM *eValue_bn = NULL; in OpenSSL_CreateKeypair()
1574 BIGNUM *p, *q, *g; in OpenSSL_CreateKeypair()
1858 const BIGNUM *r, *s; in OpenSSL_SignData()
3171 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ImportRawRSAKey()
3242 BIGNUM *p = NULL, *q = NULL, *g = NULL; in ImportRawDSAKey()
3243 BIGNUM *priv_key = NULL, *pub_key = NULL; in ImportRawDSAKey()
4093 sslBN2KMFBN(BIGNUM *from, KMF_BIGINT *to) in sslBN2KMFBN()
[all …]
/illumos-gate/usr/src/common/crypto/dsa/
H A Ddsa_impl.h74 BIGNUM p; /* p (<size-bit> prime) */
75 BIGNUM q; /* q (160-bit prime) */
76 BIGNUM g; /* g (the base) */
77 BIGNUM x; /* private key (< q) */
78 BIGNUM y; /* = g^x mod p */
79 BIGNUM k; /* k (random number < q) */
80 BIGNUM r; /* r (signature 1st part) */
81 BIGNUM s; /* s (signature 2st part) */
82 BIGNUM v; /* v (verification value - should be = r) */
83 BIGNUM p_rr; /* 2^(2*(32*p->len)) mod p */
[all …]
H A Ddsa_impl.c259 BIGNUM msg, tmp, tmp1; in dsa_sign()
426 BIGNUM msg, tmp1, tmp2, tmp3; in dsa_verify()
/illumos-gate/usr/src/common/crypto/rsa/
H A Drsa_impl.h86 BIGNUM p; /* p */
87 BIGNUM q; /* q */
88 BIGNUM n; /* n = p * q (the modulus) */
89 BIGNUM d; /* private exponent */
90 BIGNUM e; /* public exponent */
91 BIGNUM dmodpminus1; /* d mod (p - 1) (exponent 1) */
92 BIGNUM dmodqminus1; /* d mod (q - 1) (exponent 2) */
93 BIGNUM pinvmodq; /* p^(-1) mod q (the coefficient) */
94 BIGNUM p_rr; /* 2^(2*(32*p->len)) mod p */
95 BIGNUM q_rr; /* 2^(2*(32*q->len)) mod q */
[all …]
H A Drsa_impl.c187 generate_rsa_key(RSAkey *key, int psize, int qsize, BIGNUM *pubexp, in generate_rsa_key()
193 BIGNUM a, b, c, d, e, f, g, h; in generate_rsa_key()
401 BIGNUM public_exponent = {0}; in rsa_genkey_pair()
493 BIGNUM msg; in rsa_encrypt()
560 BIGNUM msg; in rsa_decrypt()
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_crypto_openssl.h172 (const BIGNUM *, const BIGNUM *, const BIGNUM *,
177 (const BIGNUM *p1, const BIGNUM *p2, const BIGNUM *g1,
178 const BIGNUM *q1);
200 static void print_pubkey(BIGNUM *, char *);
H A Dpkinit_crypto_openssl.c403 __DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) in __DH_set0_pqg()
430 __DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, in __DH_get0_pqg()
431 const BIGNUM **g) in __DH_get0_pqg()
443 __DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) in __DH_set0_key()
459 __DH_get0_key(const DH *dh, const BIGNUM **pub, const BIGNUM **priv) in __DH_get0_key()
2661 pkinit_encode_dh_params(const BIGNUM *p, const BIGNUM *g, const BIGNUM *q, in pkinit_encode_dh_params()
2780 BIGNUM *p;
2781 BIGNUM *q;
2782 BIGNUM *g;
2783 BIGNUM *j;
[all …]
/illumos-gate/usr/src/common/crypto/dh/
H A Ddh_impl.h71 BIGNUM p; /* p (prime) */
72 BIGNUM g; /* g (base) */
73 BIGNUM x; /* private value (random) */
74 BIGNUM y; /* public value (= g^x mod p) */
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dtls.c52 int __DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) in __DH_set0_pqg()
102 BIGNUM *p, *g; in get_dh512()
829 BIGNUM *e = BN_new();
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dhchap.c5537 BIGNUM a, e, n, result; in emlxs_BIGNUM_get_pubkey()
5541 BIGNUM g, result1; in emlxs_BIGNUM_get_pubkey()
5789 BIGNUM g, e, n, result1; in emlxs_BIGNUM_get_dhval()
5938 BIGNUM a, e, n, result; in emlxs_BIGNUM_pubkey()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c1311 BIGNUM n;
1883 BIGNUM x, q;
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c2555 BIGNUM p, g, x, y; in compute_dsa_pubvalue()