Home
last modified time | relevance | path

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

12

/titanic_44/usr/src/common/bignum/
H A Dbignum.h87 } 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 Dbignumimpl.c158 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 …]
/titanic_44/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 …]
/titanic_44/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()
/titanic_44/usr/src/cmd/ssh/include/
H A Dbufaux.h30 void buffer_put_bignum(Buffer *, const BIGNUM *);
31 void buffer_put_bignum2(Buffer *, const BIGNUM *);
32 void buffer_get_bignum(Buffer *, BIGNUM *);
33 void buffer_get_bignum2(Buffer *, BIGNUM *);
59 int buffer_put_bignum_ret(Buffer *, const BIGNUM *);
60 int buffer_get_bignum_ret(Buffer *, BIGNUM *);
61 int buffer_put_bignum2_ret(Buffer *, const BIGNUM *);
62 int buffer_get_bignum2_ret(Buffer *, BIGNUM *);
H A Dkex.h173 void kex_derive_keys(Kex *, u_char *, BIGNUM *);
184 BIGNUM *, BIGNUM *, BIGNUM *);
187 int, int, int, BIGNUM *, BIGNUM *, BIGNUM *, BIGNUM *, BIGNUM *);
H A Ddh.h39 BIGNUM *g;
40 BIGNUM *p;
45 DH *dh_new_group(BIGNUM *, BIGNUM *);
49 int dh_pub_is_valid(DH *, BIGNUM *);
H A Drsa.h29 void rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *);
30 int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
H A Dpacket.h58 void packet_put_bignum(BIGNUM * value);
59 void packet_put_bignum2(BIGNUM * value);
77 void packet_get_bignum(BIGNUM * value);
78 void packet_get_bignum2(BIGNUM * value);
H A Dauth.h220 int auth_rsa(struct passwd *, BIGNUM *);
222 BIGNUM *auth_rsa_generate_challenge(Key *);
223 int auth_rsa_verify_response(Key *, BIGNUM *, u_char[]);
224 int auth_rsa_key_allowed(struct passwd *, BIGNUM *, Key **);
308 int ssh1_session_key(BIGNUM *);
H A Dmpaux.h27 void compute_session_id(u_char[16], u_char[8], BIGNUM *, BIGNUM *);
H A Dauthfd.h92 ssh_decrypt_challenge(AuthenticationConnection *, Key *, BIGNUM *, u_char[16],
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dkexgex.c51 int min, int wantbits, int max, BIGNUM *prime, BIGNUM *gen, in kexgex_hash()
52 BIGNUM *client_dh_pub, in kexgex_hash()
53 BIGNUM *server_dh_pub, in kexgex_hash()
54 BIGNUM *shared_secret) in kexgex_hash()
H A Drsa.c72 rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key) in rsa_public_encrypt()
100 rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *key) in rsa_private_decrypt()
129 BIGNUM *aux; in rsa_generate_additional_parameters()
H A Dbufaux.c59 buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value) in buffer_put_bignum_ret()
89 buffer_put_bignum(Buffer *buffer, const BIGNUM *value) in buffer_put_bignum()
99 buffer_get_bignum_ret(Buffer *buffer, BIGNUM *value) in buffer_get_bignum_ret()
130 buffer_get_bignum(Buffer *buffer, BIGNUM *value) in buffer_get_bignum()
140 buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) in buffer_put_bignum2_ret()
178 buffer_put_bignum2(Buffer *buffer, const BIGNUM *value) in buffer_put_bignum2()
186 buffer_get_bignum2_ret(Buffer *buffer, BIGNUM *value) in buffer_get_bignum2_ret()
212 buffer_get_bignum2(Buffer *buffer, BIGNUM *value) in buffer_get_bignum2()
H A Dkexdh.c50 BIGNUM *client_dh_pub, in kex_dh_hash()
51 BIGNUM *server_dh_pub, in kex_dh_hash()
52 BIGNUM *shared_secret) in kex_dh_hash()
H A Dmpaux.c31 BIGNUM* host_key_n, in compute_session_id()
32 BIGNUM* session_key_n) in compute_session_id()
H A Ddh.c172 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) in dh_pub_is_valid()
246 dh_new_group(BIGNUM *gen, BIGNUM *modulus) in dh_new_group()
H A Dkexgexc.c47 BIGNUM *dh_server_pub = NULL, *shared_secret = NULL; in kexgex_client()
48 BIGNUM *p = NULL, *g = NULL; in kexgex_client()
H A Dkexgsss.c67 BIGNUM *shared_secret = NULL; in kexgss_server()
68 BIGNUM *dh_client_pub = NULL; in kexgss_server()
H A Dkexgssc.c66 BIGNUM *dh_server_pub = 0; in kexgss_client()
67 BIGNUM *shared_secret = 0; in kexgss_client()
/titanic_44/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_crypto_openssl.h165 (BIGNUM *, BIGNUM *, BIGNUM *, unsigned char **, unsigned int *);
169 (BIGNUM * p1, BIGNUM * p2, BIGNUM * g1, BIGNUM * q1);
191 static void print_pubkey(BIGNUM *, char *);
/titanic_44/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) */
/titanic_44/usr/src/cmd/ssh/sshd/
H A Dauth-rsa.c58 BIGNUM *
61 BIGNUM *challenge; in auth_rsa_generate_challenge()
77 auth_rsa_verify_response(Key *key, BIGNUM *challenge, u_char response[16]) in auth_rsa_verify_response()
119 BIGNUM *challenge, *encrypted_challenge; in auth_rsa_challenge_dialog()
155 auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey) in auth_rsa_key_allowed()
288 auth_rsa(struct passwd *pw, BIGNUM *client_n) in auth_rsa()

12