Home
last modified time | relevance | path

Searched refs:state (Results 1 – 23 of 23) sorted by relevance

/openssh-portable/
H A Dpacket.c257 ssh->state = state; in ssh_alloc_session_state()
309 state = ssh->state; in ssh_packet_set_connection()
332 struct session_state *state = ssh->state; in ssh_packet_set_timeout() local
381 struct session_state *state = ssh->state; in ssh_packet_stop_discard() local
409 struct session_state *state = ssh->state; in ssh_packet_start_discard() local
443 state = ssh->state; in ssh_packet_connection_is_on_socket()
584 struct session_state *state = ssh->state; in ssh_packet_close_internal() local
863 struct session_state *state = ssh->state; in ssh_set_newkeys() local
961 struct session_state *state = ssh->state; in ssh_packet_need_rekeying() local
1013 struct session_state *state = ssh->state; in ssh_packet_enable_delayed_compress() local
[all …]
H A Dsshkey-xmss.c128 if (xmss_set_params(&state->params, state->n, state->h, state->w, in sshkey_xmss_init()
181 for (i = 0; i < state->h - state->k; i++) in sshkey_xmss_init_bds_state()
182 state->treehash[i].node = &state->th_nodes[state->n*i]; in sshkey_xmss_init_bds_state()
183 xmss_set_bds_state(&state->bds, state->stack, state->stackoffset, in sshkey_xmss_init_bds_state()
184 state->stacklevels, state->auth, state->keep, state->treehash, in sshkey_xmss_init_bds_state()
243 state->h * state->n; in sshkey_xmss_siglen()
516 if (state->idx + 1 < state->idx) { in sshkey_xmss_get_state()
548 if (state->idx + reserve <= state->idx) in sshkey_xmss_forward_state()
826 xmss_set_bds_state(&state->bds, state->stack, state->stackoffset, in sshkey_xmss_deserialize_state()
827 state->stacklevels, state->auth, state->keep, state->treehash, in sshkey_xmss_deserialize_state()
[all …]
H A Dxmss_fast.c166 if (state->stacklevels[state->stackoffset - i - 1] < r) { in treehash_minheight_on_stack()
167 r = state->stacklevels[state->stackoffset - i - 1]; in treehash_minheight_on_stack()
287 state->stacklevels[state->stackoffset] = nodeheight; in treehash_update()
412 state->stacklevels[state->stackoffset] = 0; in bds_state_update()
415 memcpy(state->treehash[0].node, state->stack+state->stackoffset*n, n); in bds_state_update()
417 …while (state->stackoffset>1 && state->stacklevels[state->stackoffset-1] == state->stacklevels[stat… in bds_state_update()
418 nodeh = state->stacklevels[state->stackoffset-1]; in bds_state_update()
420 memcpy(state->auth + nodeh*n, state->stack+(state->stackoffset-1)*n, n); in bds_state_update()
424 memcpy(state->treehash[nodeh].node, state->stack+(state->stackoffset-1)*n, n); in bds_state_update()
432 …hash_h(state->stack+(state->stackoffset-2)*n, state->stack+(state->stackoffset-2)*n, pub_seed, nod… in bds_state_update()
[all …]
H A Dxmss_fast.h58 void xmss_set_bds_state(bds_state *state, unsigned char *stack, int stackoffset, unsigned char *sta…
76 int xmss_keypair(unsigned char *pk, unsigned char *sk, bds_state *state, xmss_params *params);
84 int xmss_sign(unsigned char *sk, bds_state *state, unsigned char *sig_msg, unsigned long long *sig_…
105 int xmssmt_sign(unsigned char *sk, bds_state *state, unsigned char *wots_sigs, unsigned char *sig_m…
H A Dkrl.c579 int next_state, state = 0; in revoked_certs_generate() local
603 state)); in revoked_certs_generate()
619 if (state != 0 && (force_new_sect || next_state != state || in revoked_certs_generate()
621 KRL_DBG(("finish state 0x%02x", state)); in revoked_certs_generate()
622 switch (state) { in revoked_certs_generate()
643 state = next_state; in revoked_certs_generate()
645 switch (state) { in revoked_certs_generate()
663 switch (state) { in revoked_certs_generate()
692 if (state != 0) { in revoked_certs_generate()
694 switch (state) { in revoked_certs_generate()
[all …]
H A Dsftp.c1149 state = MA_START; in makeargv()
1161 state = MA_START; in makeargv()
1168 state = q; in makeargv()
1172 state = q; in makeargv()
1173 else if (state == q) in makeargv()
1174 state = MA_UNQUOTED; in makeargv()
1178 if (state == MA_SQUOTE || state == MA_DQUOTE) { in makeargv()
1228 if (state == MA_SQUOTE || state == MA_DQUOTE) in makeargv()
1233 if (state == MA_SQUOTE || state == MA_DQUOTE) { in makeargv()
1252 state = MA_UNQUOTED; in makeargv()
[all …]
H A Dumac.c325 UINT64 state[STREAMS]; /* on-line state */ member
547 nh_aux(key, buf, hc->state, nbytes); in nh_transform()
587 hc->state[0] = 0; in nh_reset()
589 hc->state[1] = 0; in nh_reset()
592 hc->state[2] = 0; in nh_reset()
595 hc->state[3] = 0; in nh_reset()
692 ((UINT64 *)result)[0] = ((UINT64 *)hc->state)[0] + nbits; in nh_final()
694 ((UINT64 *)result)[1] = ((UINT64 *)hc->state)[1] + nbits; in nh_final()
697 ((UINT64 *)result)[2] = ((UINT64 *)hc->state)[2] + nbits; in nh_final()
700 ((UINT64 *)result)[3] = ((UINT64 *)hc->state)[3] + nbits; in nh_final()
H A Dmux.c272 struct mux_master_state *state = (struct mux_master_state *)c->mux_ctx; in mux_master_process_hello() local
275 if (state == NULL) in mux_master_process_hello()
277 if (state->hello_rcvd) { in mux_master_process_hello()
306 state->hello_rcvd = 1; in mux_master_process_hello()
1139 struct mux_master_state *state = (struct mux_master_state *)c->mux_ctx; in mux_master_read_cb() local
1149 state = xcalloc(1, sizeof(*state)); in mux_master_read_cb()
1150 c->mux_ctx = state; in mux_master_read_cb()
1181 if (!state->hello_rcvd) { in mux_master_read_cb()
H A Dpacket.h54 struct session_state *state; member
H A DREADME.platform12 Accounts in this state must have their passwords reset manually by the
H A Dpkcs11.h300 ck_state_t state; member
H A Dconfigure.ac4253 AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE([__res_state], [state],
/openssh-portable/openbsd-compat/
H A Dsha2.c396 a = state[0]; in SHA256Transform()
397 b = state[1]; in SHA256Transform()
398 c = state[2]; in SHA256Transform()
399 d = state[3]; in SHA256Transform()
400 e = state[4]; in SHA256Transform()
401 f = state[5]; in SHA256Transform()
402 g = state[6]; in SHA256Transform()
403 h = state[7]; in SHA256Transform()
454 a = state[0]; in SHA256Transform()
455 b = state[1]; in SHA256Transform()
[all …]
H A Dbase64.c199 u_int tarindex, state; in b64_pton() local
203 state = 0; in b64_pton()
217 switch (state) { in b64_pton()
224 state = 1; in b64_pton()
235 state = 2; in b64_pton()
246 state = 3; in b64_pton()
255 state = 0; in b64_pton()
267 switch (state) { in b64_pton()
307 if (state != 0) in b64_pton()
H A Dbcrypt_pbkdf.c74 blf_ctx state; in bcrypt_hash() local
83 Blowfish_initstate(&state); in bcrypt_hash()
84 Blowfish_expandstate(&state, sha2salt, shalen, sha2pass, shalen); in bcrypt_hash()
86 Blowfish_expand0state(&state, sha2salt, shalen); in bcrypt_hash()
87 Blowfish_expand0state(&state, sha2pass, shalen); in bcrypt_hash()
96 blf_enc(&state, cdata, sizeof(cdata) / (sizeof(uint64_t))); in bcrypt_hash()
109 explicit_bzero(&state, sizeof(state)); in bcrypt_hash()
H A Dsha1.c66 a = state[0]; in SHA1Transform()
67 b = state[1]; in SHA1Transform()
68 c = state[2]; in SHA1Transform()
69 d = state[3]; in SHA1Transform()
70 e = state[4]; in SHA1Transform()
95 state[0] += a; in SHA1Transform()
96 state[1] += b; in SHA1Transform()
97 state[2] += c; in SHA1Transform()
98 state[3] += d; in SHA1Transform()
99 state[4] += e; in SHA1Transform()
[all …]
H A Dmd5.c58 ctx->state[0] = 0x67452301; in MD5Init()
59 ctx->state[1] = 0xefcdab89; in MD5Init()
60 ctx->state[2] = 0x98badcfe; in MD5Init()
173 a = state[0]; in MD5Transform()
174 b = state[1]; in MD5Transform()
175 c = state[2]; in MD5Transform()
176 d = state[3]; in MD5Transform()
246 state[0] += a; in MD5Transform()
247 state[1] += b; in MD5Transform()
248 state[2] += c; in MD5Transform()
[all …]
H A Dsha2.h70 } state; member
78 void SHA224Transform(u_int32_t state[8], const u_int8_t [SHA224_BLOCK_LENGTH]);
97 void SHA256Transform(u_int32_t state[8], const u_int8_t [SHA256_BLOCK_LENGTH]);
116 void SHA384Transform(u_int64_t state[8], const u_int8_t [SHA384_BLOCK_LENGTH]);
135 void SHA512Transform(u_int64_t state[8], const u_int8_t [SHA512_BLOCK_LENGTH]);
154 void SHA512_256Transform(u_int64_t state[8], const u_int8_t [SHA512_256_BLOCK_LENGTH]);
H A Dbsd-snprintf.c188 int state; in dopr() local
203 state = DP_S_DONE; in dopr()
205 switch(state) { in dopr()
236 state = DP_S_MIN; in dopr()
247 state = DP_S_DOT; in dopr()
249 state = DP_S_DOT; in dopr()
254 state = DP_S_MAX; in dopr()
257 state = DP_S_MOD; in dopr()
269 state = DP_S_MOD; in dopr()
271 state = DP_S_MOD; in dopr()
[all …]
H A Dmd5.h25 u_int32_t state[4]; /* state */ member
H A Dsha1.h19 u_int32_t state[5]; member
/openssh-portable/regress/unittests/kex/
H A Dtest_kex.c83 struct sshbuf *state; in do_kex_with_key() local
129 state = sshbuf_new(); in do_kex_with_key()
130 ASSERT_PTR_NE(state, NULL); in do_kex_with_key()
131 ASSERT_INT_EQ(ssh_packet_get_state(server, state), 0); in do_kex_with_key()
132 ASSERT_INT_GE(sshbuf_len(state), 1); in do_kex_with_key()
140 ASSERT_INT_EQ(ssh_packet_set_state(server2, state), 0); in do_kex_with_key()
141 ASSERT_INT_EQ(sshbuf_len(state), 0); in do_kex_with_key()
142 sshbuf_free(state); in do_kex_with_key()
/openssh-portable/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc181 struct sshbuf *state = NULL; in do_kex_with_key() local
246 sshbuf_free(state); in do_kex_with_key()