/illumos-gate/usr/src/common/bignum/ |
H A D | bignum.h | 87 } BIGNUM; typedef 109 typedef BIG_ERR_CODE (*big_modexp_ncp_func_ptr)(BIGNUM *result, 110 BIGNUM *ma, BIGNUM *e, BIGNUM *n, 111 BIGNUM *tmp, BIG_CHUNK_TYPE n0, void *ncp, void *req); 130 extern BIGNUM big_One; 131 extern BIGNUM big_Two; 133 void printbignum(char *aname, BIGNUM *a); 135 BIG_ERR_CODE big_init(BIGNUM *number, int size); 136 BIG_ERR_CODE big_extend(BIGNUM *number, int size); 137 void big_finish(BIGNUM *number); [all …]
|
H A D | bignumimpl.c | 158 printbignum(char *aname, BIGNUM *a) in printbignum() 230 big_init(BIGNUM *number, int size) in big_init() 265 big_init1(BIGNUM *number, int size, BIG_CHUNK_TYPE *buf, int bufsize) in big_init1() 291 big_finish(BIGNUM *number) in big_finish() 307 bytestring2bignum(BIGNUM *bn, uchar_t *kn, size_t len) in bytestring2bignum() 350 bignum2bytestring(uchar_t *kn, BIGNUM *bn, size_t len) in bignum2bytestring() 391 big_bitlength(BIGNUM *a) in big_bitlength() 416 big_copy(BIGNUM *dest, BIGNUM *src) in big_copy() 460 big_extend(BIGNUM *number, int size) in big_extend() 493 big_is_zero(BIGNUM *n) in big_is_zero() [all …]
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | compat.h | 22 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, 26 const BIGNUM **d); 27 void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q); 28 void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, 29 const BIGNUM **dmq1, const BIGNUM **iqmp); 31 void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, 32 const BIGNUM **g); [all …]
|
H A D | compat.c | 29 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() 117 RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q) in RSA_get0_factors() 126 RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, in RSA_get0_crt_params() 127 const BIGNUM **iqmp) in RSA_get0_crt_params() 138 DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, in DSA_get0_pqg() 139 const BIGNUM **g) in DSA_get0_pqg() 150 DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g) in DSA_set0_pqg() [all …]
|
H A D | openssl_spi.c | 184 static KMF_RETURN sslBN2KMFBN(BIGNUM *, KMF_BIGINT *); 502 BIGNUM *bn; in check_cert() 792 BIGNUM *D = NULL, *P = NULL, *Q = NULL, *COEF = NULL; in readAltFormatPrivateKey() 793 BIGNUM *Exp1 = NULL, *Exp2 = NULL, *pminus1 = NULL; in readAltFormatPrivateKey() 794 BIGNUM *qminus1 = NULL; in readAltFormatPrivateKey() 1459 BIGNUM *eValue_bn = NULL; in OpenSSL_CreateKeypair() 1574 BIGNUM *p, *q, *g; in OpenSSL_CreateKeypair() 1723 fixbnlen(const BIGNUM *bn, unsigned char *buf, int len) in fixbnlen() 1858 const BIGNUM *r, *s; in OpenSSL_SignData() 3170 BIGNUM *n = NULL, *e = NULL, *d = NULL, *p = NULL, *q = NULL; in ImportRawRSAKey() [all …]
|
/illumos-gate/usr/src/common/crypto/dsa/ |
H A D | dsa_impl.h | 74 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 D | dsa_impl.c | 259 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 D | rsa_impl.h | 86 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 D | rsa_impl.c | 187 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 D | pkinit_crypto_openssl.h | 172 (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 D | pkinit_crypto_openssl.c | 403 __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() 733 BIGNUM *p = NULL, *q = NULL, *g = NULL; in make_dhprime() 2293 BIGNUM *p, *g, *q; in client_create_dh() 2294 const BIGNUM *pub_key; in client_create_dh() 2356 DH_get0_pqg(cryptoctx->dh, (const BIGNUM **)&p, (const BIGNUM **)&q, in client_create_dh() 2357 (const BIGNUM **)&g); in client_create_dh() [all …]
|
/illumos-gate/usr/src/common/crypto/dh/ |
H A D | dh_impl.h | 71 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 D | tls.c | 52 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 D | emlxs_dhchap.c | 5537 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 D | softAttributeUtil.c | 1311 BIGNUM n; 1883 BIGNUM x, q;
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 2555 BIGNUM p, g, x, y; in compute_dsa_pubvalue()
|