Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 114) sorted by relevance

12345

/openssh-portable/
H A Dnchan.c119 c->self, c->istate); in chan_read_failed()
141 c->self, c->istate); in chan_ibuf_empty()
162 c->self, c->ostate); in chan_obuf_empty()
197 c->self, c->istate); in chan_send_eof2()
211 c->self, c->istate, c->ostate); in chan_send_close2()
317 c->self, c->ostate); in chan_write_failed()
342 c->self, c->efd, sshbuf_len(c->extended)); in chan_is_dead()
378 c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd, in chan_shutdown_write()
401 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_read()
432 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
[all …]
H A Dchannels.c469 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; in channel_close_fds()
649 c->input = c->output = c->extended = NULL; in channel_free()
663 c->filter_cleanup(ssh, c->self, c->filter_ctx); in channel_free()
665 freezero(c, sizeof(*c)); in channel_free()
879 c->rfd, c->wfd, c->efd, c->sock, c->ctl_chan); in channel_format_status()
1238 c->self, c->istate, c->ostate); in channel_pre_x11_open()
1366 c->self, c->path, c->host_port, s4_req.command); in channel_decode_socks4()
1503 c->self, c->path, c->host_port, s5_req.command); in channel_decode_socks5()
1792 c->listening_port, c->path, c->host_port); in channel_post_port_listener()
1907 c->sock = c->rfd = c->wfd = sock; in channel_post_connecting()
[all …]
H A Dcipher-ctr.c62 struct ssh_aes_ctr_ctx *c; in ssh_aes_ctr() local
73 AES_encrypt(c->aes_counter, buf, &c->aes_ctx); in ssh_aes_ctr()
86 struct ssh_aes_ctr_ctx *c; in ssh_aes_ctr_init() local
89 c = xmalloc(sizeof(*c)); in ssh_aes_ctr_init()
94 &c->aes_ctx); in ssh_aes_ctr_init()
103 struct ssh_aes_ctr_ctx *c; in ssh_aes_ctr_cleanup() local
106 memset(c, 0, sizeof(*c)); in ssh_aes_ctr_cleanup()
107 free(c); in ssh_aes_ctr_cleanup()
116 struct ssh_aes_ctr_ctx *c; in ssh_aes_ctr_iv() local
121 memcpy(c->aes_counter, iv, len); in ssh_aes_ctr_iv()
[all …]
H A Dcipher-aes.c53 struct ssh_rijndael_ctx *c; in ssh_rijndael_init() local
56 c = xmalloc(sizeof(*c)); in ssh_rijndael_init()
57 EVP_CIPHER_CTX_set_app_data(ctx, c); in ssh_rijndael_init()
74 struct ssh_rijndael_ctx *c; in ssh_rijndael_cbc() local
90 cprev = c->r_iv; in ssh_rijndael_cbc()
119 struct ssh_rijndael_ctx *c; in ssh_rijndael_cleanup() local
122 memset(c, 0, sizeof(*c)); in ssh_rijndael_cleanup()
123 free(c); in ssh_rijndael_cleanup()
132 struct ssh_rijndael_ctx *c; in ssh_rijndael_iv() local
137 memcpy(c->r_iv, iv, len); in ssh_rijndael_iv()
[all …]
H A Dssh-keyscan.c203 con *c; in key_print_wrapper() local
333 char *hosts = c->c_output_name ? c->c_output_name : c->c_name; in keyprint()
460 ret = conalloc(c->c_namelist, c->c_output_name, c->c_keytype); in conrecycle()
550 n = atomicio(read, s, c->c_data + c->c_off, c->c_len - c->c_off); in conread()
558 if (c->c_off == c->c_len) in conread()
561 c->c_plen = htonl(c->c_plen); in conread()
562 c->c_len = c->c_plen + 8 - (c->c_plen & 7); in conread()
564 c->c_data = xmalloc(c->c_len); in conread()
586 if (c && timercmp(&c->c_tv, &now, >)) in conloop()
611 while (c && timercmp(&c->c_tv, &now, <)) { in conloop()
[all …]
H A Dcipher.c125 for (c = ciphers; c->name != NULL; c++) { in cipher_alg_list()
132 nlen = strlen(c->name); in cipher_alg_list()
158 return (c->block_size); in cipher_blocksize()
164 return (c->key_len); in cipher_keylen()
178 return (c->auth_len); in cipher_authlen()
188 return (c->iv_len != 0 || (c->flags & CFLAG_CHACHAPOLY) != 0) ? in cipher_ivlen()
189 c->iv_len : c->block_size; in cipher_ivlen()
208 for (c = ciphers; c->name != NULL; c++) in cipher_by_name()
210 return c; in cipher_by_name()
228 c = cipher_by_name(p); in ciphers_valid()
[all …]
H A DOVERVIEW9 Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>
27 sshbuf*.c (header sshbuf.h).
68 (buffer.c, bufaux.c), compression routines (zlib), and the
87 (auth-passwd.c, auth-rh-rsa.c, auth-rhosts.c, auth-rsa.c). This
89 known hosts files using code in hostfile.c. Code in canohost.c
91 Code in match.c is used to match host names.
96 authentication agent using authfd.c.
112 encode and set terminal modes is in ttymodes.c.
118 and lastlog files. Some of the code is in sshd.c.
159 uidswap.c uid-swapping
[all …]
/openssh-portable/regress/unittests/kex/
H A DMakefile4 SRCS=tests.c test_kex.c
7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
9 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
10 SRCS+=ssherr.c uidswap.c cleanup.c xmalloc.c match.c krl.c fatal.c
11 SRCS+=addr.c addrmatch.c bitmap.c packet.c dispatch.c canohost.c ssh_api.c
12 SRCS+=compat.c ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c
13 SRCS+=cipher-chachapoly.c chacha.c poly1305.c ssh-ecdsa-sk.c ssh-sk.c
14 SRCS+=ssh-ed25519-sk.c sk-usbhid.c
16 SRCS+= kex.c
[all …]
/openssh-portable/regress/unittests/sshkey/
H A DMakefile4 SRCS=tests.c test_sshkey.c test_file.c test_fuzz.c common.c
7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
9 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
10 SRCS+=ssherr.c uidswap.c cleanup.c xmalloc.c match.c krl.c fatal.c
11 SRCS+=addr.c addrmatch.c bitmap.c
12 SRCS+=ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c
13 SRCS+=cipher-chachapoly.c chacha.c poly1305.c ssh-ecdsa-sk.c ssh-sk.c
14 SRCS+=ssh-ed25519-sk.c sk-usbhid.c
16 SRCS+=digest-openssl.c
[all …]
/openssh-portable/regress/unittests/hostkeys/
H A DMakefile4 SRCS=tests.c test_iterate.c
7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
9 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
10 SRCS+=ssherr.c uidswap.c cleanup.c xmalloc.c match.c krl.c fatal.c
11 SRCS+=addr.c addrmatch.c bitmap.c hostfile.c
12 SRCS+=ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c
13 SRCS+=cipher-chachapoly.c chacha.c poly1305.c ssh-ecdsa-sk.c ssh-sk.c
14 SRCS+=ssh-ed25519-sk.c sk-usbhid.c
16 SRCS+=digest-openssl.c
[all …]
/openssh-portable/regress/unittests/sshsig/
H A DMakefile4 SRCS=tests.c
7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
9 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
10 SRCS+=ssherr.c uidswap.c cleanup.c xmalloc.c match.c krl.c fatal.c
11 SRCS+=addr.c addrmatch.c bitmap.c sshsig.c
12 SRCS+=ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c
13 SRCS+=cipher-chachapoly.c chacha.c poly1305.c ssh-ecdsa-sk.c ssh-sk.c
14 SRCS+=ssh-ed25519-sk.c sk-usbhid.c
16 SRCS+=digest-openssl.c
[all …]
/openssh-portable/regress/unittests/authopt/
H A DMakefile4 SRCS=tests.c
6 SRCS+=auth-options.c
9 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
10 SRCS+=sshbuf-io.c atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c
11 SRCS+=ssh-dss.c ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
12 SRCS+=ssherr.c uidswap.c cleanup.c xmalloc.c match.c krl.c fatal.c
13 SRCS+=addr.c addrmatch.c bitmap.c
14 SRCS+=ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c
15 SRCS+=cipher-chachapoly.c chacha.c poly1305.c ssh-ecdsa-sk.c ssh-sk.c
16 SRCS+=ssh-ed25519-sk.c sk-usbhid.c
[all …]
/openssh-portable/openbsd-compat/
H A Dvis.c45 #define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7') argument
48 (((u_int)(c) <= UCHAR_MAX && isascii((u_char)(c)) && \
49 (((c) != '*' && (c) != '?' && (c) != '[' && (c) != '#') || \
55 (c) == '\007' || (c) == '\r' || \
68 *dst++ = c; in vis()
118 ((flag & VIS_GLOB) && (c == '*' || c == '?' || c == '[' || c == '#'))) { in vis()
128 c &= 0177; in vis()
163 char c; in strvis() local
178 int c, i; in strnvis() local
238 char c; in strvisx() local
[all …]
H A Dinet_aton.c92 char c; in inet_aton() local
96 c = *cp; in inet_aton()
107 c = *++cp; in inet_aton()
108 if (c == 'x' || c == 'X') in inet_aton()
114 if (isascii(c) && isdigit(c)) { in inet_aton()
116 c = *++cp; in inet_aton()
117 } else if (base == 16 && isascii(c) && isxdigit(c)) { in inet_aton()
119 (c + 10 - (islower(c) ? 'a' : 'A')); in inet_aton()
120 c = *++cp; in inet_aton()
134 c = *++cp; in inet_aton()
[all …]
H A Dsha1.c73 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform()
74 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform()
75 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform()
76 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform()
77 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform()
78 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform()
79 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform()
80 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform()
81 R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); in SHA1Transform()
82 R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); in SHA1Transform()
[all …]
H A Dstrtoll.c54 int c; in strtoll() local
66 if (c == '-') { in strtoll()
68 c = *s++; in strtoll()
71 if (c == '+') in strtoll()
72 c = *s++; in strtoll()
76 c = s[1]; in strtoll()
113 c -= '0'; in strtoll()
115 c -= isupper(c) ? 'A' - 10 : 'a' - 10; in strtoll()
118 if (c >= base) in strtoll()
130 acc -= c; in strtoll()
[all …]
H A Dstrtoul.c52 int c; in strtoul() local
62 if (c == '-') { in strtoul()
64 c = *s++; in strtoul()
67 if (c == '+') in strtoul()
68 c = *s++; in strtoul()
72 c = s[1]; in strtoul()
82 if (isdigit(c)) in strtoul()
83 c -= '0'; in strtoul()
85 c -= isupper(c) ? 'A' - 10 : 'a' - 10; in strtoul()
88 if (c >= base) in strtoul()
[all …]
H A Dstrtoull.c54 int c; in strtoull() local
64 if (c == '-') { in strtoull()
66 c = *s++; in strtoull()
69 if (c == '+') in strtoull()
70 c = *s++; in strtoull()
74 c = s[1]; in strtoull()
84 if (isdigit(c)) in strtoull()
85 c -= '0'; in strtoull()
87 c -= isupper(c) ? 'A' - 10 : 'a' - 10; in strtoull()
90 if (c >= base) in strtoull()
[all …]
H A Dmd5.c159 u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4]; in MD5Transform() local
175 c = state[2]; in MD5Transform()
178 MD5STEP(F1, a, b, c, d, in[ 0] + 0xd76aa478, 7); in MD5Transform()
179 MD5STEP(F1, d, a, b, c, in[ 1] + 0xe8c7b756, 12); in MD5Transform()
180 MD5STEP(F1, c, d, a, b, in[ 2] + 0x242070db, 17); in MD5Transform()
181 MD5STEP(F1, b, c, d, a, in[ 3] + 0xc1bdceee, 22); in MD5Transform()
182 MD5STEP(F1, a, b, c, d, in[ 4] + 0xf57c0faf, 7); in MD5Transform()
183 MD5STEP(F1, d, a, b, c, in[ 5] + 0x4787c62a, 12); in MD5Transform()
184 MD5STEP(F1, c, d, a, b, in[ 6] + 0xa8304613, 17); in MD5Transform()
185 MD5STEP(F1, b, c, d, a, in[ 7] + 0xfd469501, 22); in MD5Transform()
[all …]
H A Dblowfish.c78 u_int32_t *s = c->S[0]; in Blowfish_encipher()
79 u_int32_t *p = c->P; in Blowfish_encipher()
103 u_int32_t *s = c->S[0]; in Blowfish_decipher()
104 u_int32_t *p = c->P; in Blowfish_decipher()
399 *c = initstate; in Blowfish_initstate()
437 c->P[i] = c->P[i] ^ temp; in Blowfish_expand0state()
446 c->P[i] = datal; in Blowfish_expand0state()
447 c->P[i + 1] = datar; in Blowfish_expand0state()
476 c->P[i] = c->P[i] ^ temp; in Blowfish_expandstate()
487 c->P[i] = datal; in Blowfish_expandstate()
[all …]
H A Dchacha_private.h40 #define ROTATE(v,c) (ROTL32(v,c)) argument
45 #define QUARTERROUND(a,b,c,d) \ argument
47 c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
49 c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
120 ctarget = c; in chacha_encrypt_bytes()
121 c = tmp; in chacha_encrypt_bytes()
191 U32TO8_LITTLE(c + 0,x0); in chacha_encrypt_bytes()
192 U32TO8_LITTLE(c + 4,x1); in chacha_encrypt_bytes()
193 U32TO8_LITTLE(c + 8,x2); in chacha_encrypt_bytes()
194 U32TO8_LITTLE(c + 12,x3); in chacha_encrypt_bytes()
[all …]
/openssh-portable/regress/unittests/sshbuf/
H A DMakefile6 SRCS=tests.c
7 SRCS+=test_sshbuf.c
8 SRCS+=test_sshbuf_getput_basic.c
9 SRCS+=test_sshbuf_getput_crypto.c
10 SRCS+=test_sshbuf_misc.c
11 SRCS+=test_sshbuf_fuzz.c
12 SRCS+=test_sshbuf_getput_fuzz.c
13 SRCS+=test_sshbuf_fixed.c
16 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
17 SRCS+=sshbuf-io.c atomicio.c misc.c xmalloc.c log.c fatal.c ssherr.c cleanup.c
[all …]
/openssh-portable/regress/unittests/misc/
H A DMakefile4 SRCS=tests.c
7 SRCS+= test_parse.c
8 SRCS+= test_argv.c
11 SRCS+= sshbuf.c
14 SRCS+= ssherr.c
15 SRCS+= log.c
16 SRCS+= xmalloc.c
17 SRCS+= misc.c
18 SRCS+= match.c
19 SRCS+= addr.c
[all …]
/openssh-portable/regress/unittests/match/
H A DMakefile4 SRCS=tests.c
7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=match.c misc.c log.c uidswap.c fatal.c ssherr.c addrmatch.c xmalloc.c
9 SRCS+=cleanup.c atomicio.c addr.c
/openssh-portable/regress/unittests/conversion/
H A DMakefile4 SRCS=tests.c
7 SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
8 SRCS+=atomicio.c misc.c xmalloc.c log.c uidswap.c cleanup.c fatal.c ssherr.c
9 SRCS+=match.c addr.c addrmatch.c

12345