Searched refs:state (Results 76 - 100 of 2305) sorted by relevance

1234567891011>>

/freebsd-current/crypto/openssh/
H A Dsshkey-xmss.c52 /* opaque internal XMSS state */
53 #define XMSS_MAGIC "xmss-state-v1"
69 u_int32_t idx; /* state read from file */
71 int have_state; /* .state file exists */
74 char *enc_ciphername;/* encrypt state with cipher */
75 u_char *enc_keyiv; /* encrypt state with key */
97 struct ssh_xmss_state *state; local
103 state = calloc(sizeof(struct ssh_xmss_state), 1);
104 if (state == NULL)
107 state
140 struct ssh_xmss_state *state = key->xmss_state; local
166 struct ssh_xmss_state *state = key->xmss_state; local
192 struct ssh_xmss_state *state = key->xmss_state; local
215 struct ssh_xmss_state *state = key->xmss_state; local
225 struct ssh_xmss_state *state = key->xmss_state; local
235 struct ssh_xmss_state *state = key->xmss_state; local
250 struct ssh_xmss_state *state = key->xmss_state; local
260 struct ssh_xmss_state *state = key->xmss_state; local
270 struct ssh_xmss_state *state = k->xmss_state; local
295 struct ssh_xmss_state *state = k->xmss_state; local
311 struct ssh_xmss_state *state = k->xmss_state; local
328 struct ssh_xmss_state *state = k->xmss_state; local
348 struct ssh_xmss_state *state = k->xmss_state; local
447 struct ssh_xmss_state *state = k->xmss_state; local
537 struct ssh_xmss_state *state = k->xmss_state; local
570 struct ssh_xmss_state *state = k->xmss_state; local
680 struct ssh_xmss_state *state = k->xmss_state; local
718 struct ssh_xmss_state *state = k->xmss_state; local
774 struct ssh_xmss_state *state = k->xmss_state; local
839 struct ssh_xmss_state *state = k->xmss_state; local
892 struct ssh_xmss_state *state = k->xmss_state; local
983 struct ssh_xmss_state *state = k->xmss_state; local
1087 struct ssh_xmss_state *state = k->xmss_state; local
1102 struct ssh_xmss_state *state = k->xmss_state; local
[all...]
/freebsd-current/sys/contrib/openzfs/module/icp/algs/sha2/
H A Dsha2_generic.c79 static void sha256_generic(uint32_t state[8], const void *data, size_t num_blks) argument
94 a = state[0];
95 b = state[1];
96 c = state[2];
97 d = state[3];
98 e = state[4];
99 f = state[5];
100 g = state[6];
101 h = state[7];
122 state[
175 sha512_generic(uint64_t state[8], const void *data, size_t num_blks) argument
[all...]
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_read_support_filter_gzip.c129 struct private_data *state
131 void *state
140 (void)state; /* UNUSED */
159 if (state)
160 state->mtime = archive_le32dec(p + 4);
191 if (state) {
193 free(state->name);
194 state->name = strdup((const char *)&p[file_start]);
273 struct private_data *state; local
275 state
303 struct private_data *state; local
333 struct private_data *state; local
391 struct private_data *state; local
424 struct private_data *state; local
509 struct private_data *state; local
[all...]
H A Darchive_read_support_filter_zstd.c170 struct private_data *state; local
178 state = (struct private_data *)calloc(1, sizeof(*state));
182 if (state == NULL || out_block == NULL || dstream == NULL) {
184 free(state);
191 self->data = state;
193 state->out_block_size = out_block_size;
194 state->out_block = out_block;
195 state->dstream = dstream;
198 state
207 struct private_data *state; local
284 struct private_data *state; local
[all...]
H A Darchive_read_support_filter_bzip2.c188 struct private_data *state; local
193 state = (struct private_data *)calloc(1, sizeof(*state));
195 if (state == NULL || out_block == NULL) {
199 free(state);
203 self->data = state;
204 state->out_block_size = out_block_size;
205 state->out_block = out_block;
217 struct private_data *state; local
222 state
340 struct private_data *state; local
[all...]
H A Darchive_read_support_filter_xz.c476 struct private_data *state; local
479 state = (struct private_data *)calloc(1, sizeof(*state));
481 if (state == NULL || out_block == NULL) {
485 free(state);
489 self->data = state;
490 state->out_block_size = out_block_size;
491 state->out_block = out_block;
494 state->stream.avail_in = 0;
496 state
535 struct private_data *state; local
591 struct private_data *state; local
654 struct private_data *state; local
743 struct private_data *state; local
[all...]
H A Darchive_read_support_filter_lz4.c221 struct private_data *state; local
226 state = (struct private_data *)calloc(1, sizeof(*state));
227 if (state == NULL) {
233 self->data = state;
234 state->stage = SELECT_STREAM;
243 struct private_data *state = (struct private_data *)self->data; local
244 size_t out_block_size = state->flags.block_maximum_size;
247 if (!state->flags.block_independence)
249 if (state
268 struct private_data *state = (struct private_data *)self->data; local
292 struct private_data *state = (struct private_data *)self->data; local
374 struct private_data *state = (struct private_data *)self->data; local
475 struct private_data *state = (struct private_data *)self->data; local
619 struct private_data *state = (struct private_data *)self->data; local
674 struct private_data *state = (struct private_data *)self->data; local
730 struct private_data *state; local
[all...]
/freebsd-current/contrib/wpa/src/crypto/
H A Dfips_prf_openssl.c16 static void sha1_transform(u32 *state, const u8 data[64]) argument
21 context.h[0] = state[0];
22 context.h[1] = state[1];
23 context.h[2] = state[2];
24 context.h[3] = state[3];
25 context.h[4] = state[4];
27 state[0] = context.h[0];
28 state[1] = context.h[1];
29 state[2] = context.h[2];
30 state[
[all...]
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/
H A Dsecretstream_xchacha20poly1305.c28 (crypto_secretstream_xchacha20poly1305_state *state)
30 memset(STATE_COUNTER(state), 0,
32 STATE_COUNTER(state)[0] = 1;
44 (crypto_secretstream_xchacha20poly1305_state *state,
53 COMPILER_ASSERT(sizeof state->nonce ==
58 crypto_core_hchacha20(state->k, out, k, NULL);
59 _crypto_secretstream_xchacha20poly1305_counter_reset(state);
60 memcpy(STATE_INONCE(state), out + crypto_core_hchacha20_INPUTBYTES,
62 memset(state->_pad, 0, sizeof state
27 _crypto_secretstream_xchacha20poly1305_counter_reset(crypto_secretstream_xchacha20poly1305_state *state) argument
43 crypto_secretstream_xchacha20poly1305_init_push(crypto_secretstream_xchacha20poly1305_state *state, unsigned char out[crypto_secretstream_xchacha20poly1305_HEADERBYTES], const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) argument
68 crypto_secretstream_xchacha20poly1305_init_pull(crypto_secretstream_xchacha20poly1305_state *state, const unsigned char in[crypto_secretstream_xchacha20poly1305_HEADERBYTES], const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) argument
83 crypto_secretstream_xchacha20poly1305_rekey(crypto_secretstream_xchacha20poly1305_state *state) argument
111 crypto_secretstream_xchacha20poly1305_push(crypto_secretstream_xchacha20poly1305_state *state, unsigned char *out, unsigned long long *outlen_p, const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, unsigned char tag) argument
177 crypto_secretstream_xchacha20poly1305_pull(crypto_secretstream_xchacha20poly1305_state *state, unsigned char *m, unsigned long long *mlen_p, unsigned char *tag_p, const unsigned char *in, unsigned long long inlen, const unsigned char *ad, unsigned long long adlen) argument
[all...]
/freebsd-current/contrib/expat/xmlwf/
H A Dxmlmime.c42 int state = init; local
47 if (state == inAtom)
54 if (state == inAtom)
58 if (state == inAtom)
60 if (state != inString)
61 state++;
64 if (state > init)
65 --state;
66 else if (state != inString)
72 if (state
[all...]
H A Dct.c39 int state = init; local
49 if (state == inAtom)
53 if (state == inAtom)
55 if (state != inString)
56 state++;
59 if (state > init)
60 --state;
61 else if (state != inString)
67 if (state == inAtom)
69 if (state
[all...]
/freebsd-current/sys/geom/vinum/
H A Dgeom_vinum_state.c47 char *obj, *state; local
57 state = gctl_get_param(req, "state", NULL);
58 if (state == NULL) {
59 gctl_error(req, "no state given");
76 if (gv_volstatei(state) < 0) {
77 gctl_error(req, "invalid volume state '%s'", state);
82 gv_volstatei(state), f);
86 if (gv_plexstatei(state) <
[all...]
/freebsd-current/contrib/kyua/engine/
H A Dkyuafile.cpp38 #include <lutok/state.ipp>
84 static int lua_current_kyuafile(lutok::state&);
85 static int lua_generic_test_program(lutok::state&);
86 static int lua_include(lutok::state&);
87 static int lua_syntax(lutok::state&);
88 static int lua_test_suite(lutok::state&);
111 /// The main purpose of having this as a class is to keep track of global state
115 /// Lua state to parse a single Kyuafile file.
116 lutok::state _state;
172 /// Initializes the parser and the Lua state
241 get_from_state(lutok::state& state) argument
420 lua_generic_test_program(lutok::state& state) argument
512 lua_current_kyuafile(lutok::state& state) argument
529 lua_include(lutok::state& state) argument
559 lua_syntax(lutok::state& state) argument
588 lua_test_suite(lutok::state& state) argument
[all...]
/freebsd-current/sys/arm/ti/
H A Dti_pinmux.h52 const char *state; member in struct:ti_pinmux_padstate
71 unsigned int state);
73 unsigned int *state);
74 int ti_pinmux_padconf_set_gpiomode(uint32_t gpio, unsigned int state);
75 int ti_pinmux_padconf_get_gpiomode(uint32_t gpio, unsigned int *state);
/freebsd-current/usr.sbin/ppp/
H A Ddeflate.c42 /* Our state */
58 struct deflate_state *state = (struct deflate_state *)v; local
60 state->seqno = 0;
61 state->uncomp_rec = 0;
62 deflateReset(&state->cx);
72 struct deflate_state *state = (struct deflate_state *)v; local
98 *wp++ = state->seqno >> 8;
99 *wp++ = state->seqno & 0377;
100 log_Printf(LogDEBUG, "DeflateOutput: Seq %d\n", state->seqno);
101 state
190 struct deflate_state *state = (struct deflate_state *)v; local
201 struct deflate_state *state = (struct deflate_state *)v; local
339 struct deflate_state *state = (struct deflate_state *)v; local
491 struct deflate_state *state; local
514 struct deflate_state *state; local
538 struct deflate_state *state = (struct deflate_state *)v; local
547 struct deflate_state *state = (struct deflate_state *)v; local
[all...]
/freebsd-current/contrib/lutok/examples/
H A Dbindings.cpp46 #include <lutok/state.ipp>
71 /// \param state The Lua state from which to get the function arguments and into
79 lua_factorial(lutok::state& state) argument
81 if (!state.is_number(-1))
83 const int i = state.to_integer(-1);
86 state.push_integer(factorial(i));
107 lutok::state state; local
[all...]
/freebsd-current/sys/kern/
H A Dsubr_power.c44 int state = (intptr_t)arg; local
46 power_pm_fn(POWER_CMD_SUSPEND, power_pm_arg, state);
76 power_pm_suspend(int state) argument
81 if (state != POWER_SLEEP_STATE_STANDBY &&
82 state != POWER_SLEEP_STATE_SUSPEND &&
83 state != POWER_SLEEP_STATE_HIBERNATE)
85 power_pm_task.ta_context = (void *)(intptr_t)state;
102 power_profile_set_state(int state) argument
106 if (state != power_profile_state) {
107 power_profile_state = state;
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dpwm.h38 struct pwm_state state; member in struct:pwm_device
70 pwm_get_relative_duty_cycle(const struct pwm_state *state, unsigned int scale) argument
76 pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, argument
83 pwm_get_state(const struct pwm_device *pwm, struct pwm_state *state) argument
85 *state = pwm->state;
89 pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state) argument
/freebsd-current/sys/arm/arm/
H A Dunwind.c349 unwind_exec_read_byte(struct unwind_state *state) argument
354 insn = (*state->insn) >> (state->byte * 8);
357 if (state->byte == 0) {
358 state->byte = 3;
359 state->insn++;
360 state->entries--;
362 state->byte--;
369 unwind_exec_insn(struct unwind_state *state) argument
373 uint32_t *vsp = (uint32_t *)state
516 unwind_tab(struct unwind_state *state) argument
568 unwind_stack_one(struct unwind_state *state, int can_lock __unused) argument
[all...]
/freebsd-current/contrib/kyua/utils/config/
H A Dparser.cpp34 #include <lutok/state.ipp>
60 /// The Lua state used by this parser to process the configuration file.
61 lutok::state _state;
79 friend void lua_syntax(lutok::state&);
96 // Export the config module to the Lua state so that all global variable
107 lua_syntax(lutok::state& state) argument
109 if (!state.is_number(-1))
111 const int syntax_version = state.to_integer(-1);
114 if (state
[all...]
/freebsd-current/contrib/lutok/
H A Dstate.cpp38 #include "state.ipp"
49 /// \param state The Lua C API state.
53 protected_getglobal(lua_State* state) argument
55 lua_getglobal(state, lua_tostring(state, -1));
66 /// \param state The Lua C API state.
70 protected_gettable(lua_State* state) argument
72 lua_gettable(state,
87 protected_next(lua_State* state) argument
104 protected_setglobal(lua_State* state) argument
121 protected_settable(lua_State* state) argument
145 lutok::state state = lutok::state_c_gate::connect(raw_state); local
176 lutok::state state = lutok::state_c_gate::connect(raw_state); local
205 lutok::state state = lutok::state_c_gate::connect(raw_state); local
242 lutok::state::state(void) function in class:lutok::state
257 lutok::state::state(void* raw_state_) : function in class:lutok::state
[all...]
/freebsd-current/tools/tools/net80211/wesside/wesside/
H A Daircrack-ptw-lib.c41 // Internal state of rc4
61 // The rc4 initial state, the idendity permutation
135 static void rc4init ( uint8_t * key, int keylen, rc4state * state) { argument
139 memcpy(state->s, &rc4initial, n);
142 j = (j + state->s[i] + key[i % keylen]) % n;
143 tmp = state->s[i];
144 state->s[i] = state->s[j];
145 state->s[j] = tmp;
147 state
152 rc4update(rc4state * state) argument
186 uint8_t state[n]; local
217 correct(PTW_attackstate * state, uint8_t * key, int keylen) argument
283 doRound(PTW_tableentry sortedtable[][n], int keybyte, int fixat, uint8_t fixvalue, int * searchborders, uint8_t * key, int keylen, PTW_attackstate * state, uint8_t sum, int * strongbytes) argument
317 doComputation(PTW_attackstate * state, uint8_t * key, int keylen, PTW_tableentry table[][n], sorthelper * sh2, int * strongbytes, int keylimit) argument
361 PTW_computeKey(PTW_attackstate * state, uint8_t * keybuf, int keylen, int testlimit) argument
434 PTW_addsession(PTW_attackstate * state, uint8_t * iv, uint8_t * keystream) argument
466 PTW_attackstate * state = NULL; local
483 PTW_freeattackstate(PTW_attackstate * state) argument
[all...]
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_auth/hmacsha512256/
H A Dauth_hmacsha512256.c39 crypto_auth_hmacsha512256_init(crypto_auth_hmacsha512256_state *state, argument
42 return crypto_auth_hmacsha512_init((crypto_auth_hmacsha512_state *) state,
47 crypto_auth_hmacsha512256_update(crypto_auth_hmacsha512256_state *state, argument
51 return crypto_auth_hmacsha512_update((crypto_auth_hmacsha512_state *) state,
56 crypto_auth_hmacsha512256_final(crypto_auth_hmacsha512256_state *state, argument
61 crypto_auth_hmacsha512_final((crypto_auth_hmacsha512_state *) state, out0);
71 crypto_auth_hmacsha512256_state state; local
73 crypto_auth_hmacsha512256_init(&state, k,
75 crypto_auth_hmacsha512256_update(&state, in, inlen);
76 crypto_auth_hmacsha512256_final(&state, ou
[all...]
/freebsd-current/lib/libutil/
H A Dcpuset.c41 enum { NONE, NUM, DASH } state; local
52 state = NONE;
61 switch (state) {
64 state = NUM;
69 state = NONE;
79 switch (state) {
84 state = NONE;
92 if (state != NUM)
94 state = DASH;
101 switch (state) {
[all...]
/freebsd-current/sbin/veriexec/
H A Dveriexec.c56 "Usage:\tveriexec [-C path] [-hlxv] [-[iz] state] [path]\n");
85 * @brief Get the veriexec state for the supplied argument
87 * @retval The veriexec state number for the specified argument
92 uint32_t state = 0; local
98 state |= VERIEXEC_STATE_ACTIVE;
100 state |= VERIEXEC_STATE_ENFORCE;
102 state |= VERIEXEC_STATE_LOADED;
104 state |= VERIEXEC_STATE_LOCKED;
105 if (state == 0 || __bitcount(state) >
119 uint32_t state = 0; local
181 uint32_t state; local
[all...]

Completed in 319 milliseconds

1234567891011>>