Home
last modified time | relevance | path

Searched full:state (Results 1 – 25 of 8293) sorted by relevance

12345678910>>...332

/freebsd-src/sys/contrib/zstd/zlibWrapper/
H A Dgzwrite.c19 /* Initialize state for writing a gzip file. Mark initialization by setting
20 state.state->size to non-zero. Return -1 on a memory allocation failure, or 0 on
22 local int gz_init(state) in gz_init() argument
23 gz_statep state; in gz_init()
26 z_streamp strm = &(state.state->strm);
29 state.state->in = (unsigned char*)malloc(state.state->want << 1);
30 if (state.state->in == NULL) {
31 gz_error(state, Z_MEM_ERROR, "out of memory");
35 /* only need output buffer and deflate state if compressing */
36 if (!state.state->direct) {
[all …]
H A Dgzread.c29state.state->fd, and update state.state->eof, state.state->err, and state.state->msg as appropriat…
32 local int gz_load(state, buf, len, have) in gz_load() argument
33 gz_statep state; in gz_load()
46 ret = read(state.state->fd, buf + *have, get);
52 gz_error(state, Z_ERRNO, zstrerror());
56 state.state->eof = 1;
67 local int gz_avail(state) in gz_avail() argument
68 gz_statep state; in gz_avail()
71 z_streamp strm = &(state.state->strm);
73 if (state.state->err != Z_OK && state.state->err != Z_BUF_ERROR)
[all …]
H A Dgzlib.c77 /* Reset gzip file state */
78 local void gz_reset(state) in gz_reset() argument
79 gz_statep state; in gz_reset()
81 state.state->x.have = 0; /* no output data available */
82 if (state.state->mode == GZ_READ) { /* for reading ... */
83 state.state->eof = 0; /* not at end of file */
84 state.state->past = 0; /* have not read past end yet */
85 state.state->how = LOOK; /* look for gzip header */
87 state.state->seek = 0; /* no seek request pending */
88 gz_error(state, Z_OK, NULL); /* clear error */
[all …]
/freebsd-src/contrib/lutok/
H A Dstate_test.cpp29 #include "state.ipp"
44 // A note about the lutok::state tests.
46 // The methods of lutok::state are, in general, thin wrappers around the
53 // Lastly, for every test case that stresses a single lutok::state method, we
54 // only call that method directly. All other Lua state manipulation operations
64 /// \param state The Lua state.
69 is_available(lutok::state& state, const char* symbol) in is_available() argument
71 luaL_loadstring(raw(state), (std::string("return ") + symbol).c_str()); in is_available()
72 const bool ok = (lua_pcall(raw(state), 0, 1, 0) == 0 && in is_available()
73 !lua_isnil(raw(state), -1)); in is_available()
[all …]
H A Doperations_test.cpp36 #include "state.ipp"
49 /// \param state The Lua state.
53 hook_add(lutok::state& state) in hook_add() argument
55 state.push_integer(state.to_integer(-1) + state.to_integer(-2)); in hook_add()
66 /// \param state The Lua state.
70 hook_multiply(lutok::state& state) in hook_multiply() argument
72 state.push_integer(state.to_integer(-1) * state.to_integer(-2)); in hook_multiply()
83 lutok::state state; in ATF_TEST_CASE_BODY() local
85 lutok::create_module(state, "my_math", members); in ATF_TEST_CASE_BODY()
87 state.open_base(); in ATF_TEST_CASE_BODY()
[all …]
/freebsd-src/sys/contrib/zlib/
H A Dinflate.c26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
30 * - Add comments on state->bits assertion in inffast.c
95 struct inflate_state FAR *state; in inflateStateCheck() local
99 state = (struct inflate_state FAR *)strm->state; in inflateStateCheck()
100 if (state == Z_NULL || state->strm != strm || in inflateStateCheck()
101 state->mode < HEAD || state->mode > SYNC) in inflateStateCheck()
107 struct inflate_state FAR *state; in inflateResetKeep() local
110 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep()
111 strm->total_in = strm->total_out = state->total = 0; in inflateResetKeep()
113 if (state->wrap) /* to support ill-conceived Java test suite */ in inflateResetKeep()
[all …]
H A Dgzread.c10 state->fd, and update state->eof, state->err, and state->msg as appropriate.
13 local int gz_load(gz_statep state, unsigned char *buf, unsigned len, in gz_load() argument
23 ret = read(state->fd, buf + *have, get); in gz_load()
29 gz_error(state, Z_ERRNO, zstrerror()); in gz_load()
33 state->eof = 1; in gz_load()
44 local int gz_avail(gz_statep state) { in gz_avail() argument
46 z_streamp strm = &(state->strm); in gz_avail()
48 if (state->err != Z_OK && state->err != Z_BUF_ERROR) in gz_avail()
50 if (state->eof == 0) { in gz_avail()
52 unsigned char *p = state->in; in gz_avail()
[all …]
H A Dgzwrite.c9 /* Initialize state for writing a gzip file. Mark initialization by setting
10 state->size to non-zero. Return -1 on a memory allocation failure, or 0 on
12 local int gz_init(gz_statep state) { in gz_init() argument
14 z_streamp strm = &(state->strm); in gz_init()
17 state->in = (unsigned char *)malloc(state->want << 1); in gz_init()
18 if (state->in == NULL) { in gz_init()
19 gz_error(state, Z_MEM_ERROR, "out of memory"); in gz_init()
23 /* only need output buffer and deflate state if compressing */ in gz_init()
24 if (!state->direct) { in gz_init()
26 state->out = (unsigned char *)malloc(state->want); in gz_init()
[all …]
H A Dgzlib.c70 /* Reset gzip file state */
71 local void gz_reset(gz_statep state) { in gz_reset() argument
72 state->x.have = 0; /* no output data available */ in gz_reset()
73 if (state->mode == GZ_READ) { /* for reading ... */ in gz_reset()
74 state->eof = 0; /* not at end of file */ in gz_reset()
75 state->past = 0; /* have not read past end yet */ in gz_reset()
76 state->how = LOOK; /* look for gzip header */ in gz_reset()
79 state->reset = 0; /* no deflateReset pending */ in gz_reset()
80 state->seek = 0; /* no seek request pending */ in gz_reset()
81 gz_error(state, Z_OK, NULL); /* clear error */ in gz_reset()
[all …]
H A Dinfback.c28 struct inflate_state FAR *state; in inflateBackInit_() local
51 state = (struct inflate_state FAR *)ZALLOC(strm, 1, in inflateBackInit_()
53 if (state == Z_NULL) return Z_MEM_ERROR; in inflateBackInit_()
55 strm->state = (struct internal_state FAR *)state; in inflateBackInit_()
56 state->dmax = 32768U; in inflateBackInit_()
57 state->wbits = (uInt)windowBits; in inflateBackInit_()
58 state->wsize = 1U << windowBits; in inflateBackInit_()
59 state->window = window; in inflateBackInit_()
60 state->wnext = 0; in inflateBackInit_()
61 state->whave = 0; in inflateBackInit_()
[all …]
/freebsd-src/contrib/wpa/src/utils/
H A Dstate_machine.h2 * wpa_supplicant/hostapd - State machine definitions
9 * implement a state machine. In addition to including this header file, each
10 * file implementing a state machine must define STATE_MACHINE_DATA to be the
11 * data structure including state variables (enum machine_state,
14 * a group of state machines with shared data structure, STATE_MACHINE_ADDR
16 * SM_ENTRY_M macro can be used to define similar group of state machines
24 * SM_STATE - Declaration of a state machine function
25 * @machine: State machine name
26 * @state: State machine state
28 * This macro is used to declare a state machine function. It is used in place
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/XRay/
H A DBlockVerifier.cpp17 constexpr unsigned long long mask(BlockVerifier::State S) { in mask()
21 constexpr std::size_t number(BlockVerifier::State S) { in number()
25 StringRef recordToString(BlockVerifier::State R) { in recordToString()
27 case BlockVerifier::State::BufferExtents: in recordToString()
29 case BlockVerifier::State::NewBuffer: in recordToString()
31 case BlockVerifier::State::WallClockTime: in recordToString()
33 case BlockVerifier::State::PIDEntry: in recordToString()
35 case BlockVerifier::State::NewCPUId: in recordToString()
37 case BlockVerifier::State::TSCWrap: in recordToString()
39 case BlockVerifier::State::CustomEvent: in recordToString()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/Support/BLAKE3/
H A Dblake3_portable.c8 INLINE void g(uint32_t *state, size_t a, size_t b, size_t c, size_t d, in g() argument
10 state[a] = state[a] + state[b] + x; in g()
11 state[d] = rotr32(state[d] ^ state[a], 16); in g()
12 state[c] = state[c] + state[d]; in g()
13 state[b] = rotr32(state[b] ^ state[c], 12); in g()
14 state[a] = state[a] + state[b] + y; in g()
15 state[d] = rotr32(state[d] ^ state[a], 8); in g()
16 state[c] = state[c] + state[d]; in g()
17 state[b] = rotr32(state[b] ^ state[c], 7); in g()
20 INLINE void round_fn(uint32_t state[16], const uint32_t *msg, size_t round) { in round_fn()
[all …]
/freebsd-src/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_sprom_subr.c50 static int bhnd_sprom_opcode_reset(bhnd_sprom_opcode_state *state);
52 static int bhnd_sprom_opcode_set_type(bhnd_sprom_opcode_state *state,
55 static int bhnd_sprom_opcode_set_var(bhnd_sprom_opcode_state *state,
57 static int bhnd_sprom_opcode_clear_var(bhnd_sprom_opcode_state *state);
59 static int bhnd_sprom_opcode_flush_bind(bhnd_sprom_opcode_state *state);
61 static int bhnd_sprom_opcode_read_opval32(bhnd_sprom_opcode_state *state,
64 static int bhnd_sprom_opcode_step(bhnd_sprom_opcode_state *state,
72 * Initialize SPROM opcode evaluation state.
74 * @param state The opcode state to be initialized.
83 bhnd_sprom_opcode_init(bhnd_sprom_opcode_state *state, in bhnd_sprom_opcode_init() argument
[all …]
/freebsd-src/contrib/kyua/utils/config/
H A Dlua_module.cpp32 #include <lutok/state.ipp>
45 /// Gets the tree singleton stored in the Lua state.
47 /// \param state The Lua state. The registry must contain a key named
50 /// \return A reference to the tree associated with the Lua state.
54 get_global_tree(lutok::state& state) in get_global_tree() argument
56 lutok::stack_cleaner cleaner(state); in get_global_tree()
58 state.push_value(lutok::registry_index); in get_global_tree()
59 state.push_string("tree"); in get_global_tree()
60 state.get_table(-2); in get_global_tree()
61 if (state.is_nil(-1)) in get_global_tree()
[all …]
/freebsd-src/contrib/kyua/utils/fs/
H A Dlua_module_test.cpp33 #include <lutok/state.hpp>
46 lutok::state state; in ATF_TEST_CASE_BODY() local
47 stack_balance_checker checker(state); in ATF_TEST_CASE_BODY()
48 fs::open_fs(state); in ATF_TEST_CASE_BODY()
49 lutok::do_string(state, "return fs.basename", 0, 1, 0); in ATF_TEST_CASE_BODY()
50 ATF_REQUIRE(state.is_function(-1)); in ATF_TEST_CASE_BODY()
51 lutok::do_string(state, "return fs.dirname", 0, 1, 0); in ATF_TEST_CASE_BODY()
52 ATF_REQUIRE(state.is_function(-1)); in ATF_TEST_CASE_BODY()
53 lutok::do_string(state, "return fs.join", 0, 1, 0); in ATF_TEST_CASE_BODY()
54 ATF_REQUIRE(state.is_function(-1)); in ATF_TEST_CASE_BODY()
[all …]
/freebsd-src/sys/contrib/openzfs/module/icp/algs/blake3/
H A Dblake3_generic.c33 static inline void g(uint32_t *state, size_t a, size_t b, size_t c, size_t d, in g() argument
36 state[a] = state[a] + state[b] + x; in g()
37 state[d] = rotr32(state[d] ^ state[a], 16); in g()
38 state[c] = state[c] + state[d]; in g()
39 state[b] = rotr32(state[b] ^ state[c], 12); in g()
40 state[a] = state[a] + state[b] + y; in g()
41 state[d] = rotr32(state[d] ^ state[a], 8); in g()
42 state[c] = state[c] + state[d]; in g()
43 state[b] = rotr32(state[b] ^ state[c], 7); in g()
46 static inline void round_fn(uint32_t state[16], const uint32_t *msg, in round_fn()
[all …]
/freebsd-src/contrib/expat/lib/
H A Dxmlrole.c115 # define setTopLevel(state) \ argument
116 ((state)->handler \
117 = ((state)->documentEntity ? internalSubset : externalSubset1))
119 # define setTopLevel(state) ((state)->handler = internalSubset) argument
122 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state, int tok,
138 static int FASTCALL common(PROLOG_STATE *state, int tok);
141 prolog0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, in prolog0() argument
145 state->handler = prolog1; in prolog0()
148 state->handler = prolog1; in prolog0()
151 state->handler = prolog1; in prolog0()
[all …]
/freebsd-src/sys/dev/evdev/
H A Duinput.c50 #define debugf(state, fmt, args...) printf("uinput: " fmt "\n", ##args) argument
52 #define debugf(state, fmt, args...) argument
57 #define UINPUT_LOCK(state) sx_xlock(&(state)->ucs_lock) argument
58 #define UINPUT_UNLOCK(state) sx_unlock(&(state)->ucs_lock) argument
59 #define UINPUT_LOCK_ASSERT(state) sx_assert(&(state)->ucs_lock, SA_LOCKED) argument
60 #define UINPUT_EMPTYQ(state) \ argument
61 ((state)
159 struct uinput_cdev_state *state = evdev_get_softc(evdev); uinput_ev_event() local
173 uinput_enqueue_event(struct uinput_cdev_state * state,uint16_t type,uint16_t code,int32_t value) uinput_enqueue_event() argument
201 struct uinput_cdev_state *state; uinput_open() local
218 struct uinput_cdev_state *state = (struct uinput_cdev_state *)data; uinput_dtor() local
232 struct uinput_cdev_state *state; uinput_read() local
282 struct uinput_cdev_state *state; uinput_write() local
329 uinput_setup_dev(struct uinput_cdev_state * state,struct input_id * id,char * name,uint32_t ff_effects_max) uinput_setup_dev() argument
345 uinput_setup_provider(struct uinput_cdev_state * state,struct uinput_user_dev * udev) uinput_setup_provider() argument
376 struct uinput_cdev_state *state; uinput_poll() local
405 struct uinput_cdev_state *state; uinput_kqfilter() local
428 struct uinput_cdev_state *state; uinput_kqread() local
442 struct uinput_cdev_state *state; uinput_kqdetach() local
449 uinput_notify(struct uinput_cdev_state * state) uinput_notify() argument
466 uinput_ioctl_sub(struct uinput_cdev_state * state,u_long cmd,caddr_t data) uinput_ioctl_sub() argument
644 struct uinput_cdev_state *state; uinput_ioctl() local
[all...]
/freebsd-src/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; in sshkey_xmss_init() local
103 state = calloc(sizeof(struct ssh_xmss_state), 1); in sshkey_xmss_init()
104 if (state == NULL) in sshkey_xmss_init()
107 state->n = 32; in sshkey_xmss_init()
[all …]
/freebsd-src/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_compress.c147 struct private_data *state; in archive_compressor_compress_open() local
153 state = calloc(1, sizeof(*state)); in archive_compressor_compress_open()
154 if (state == NULL) { in archive_compressor_compress_open()
169 state->compressed_buffer_size = bs; in archive_compressor_compress_open()
170 state->compressed = malloc(state->compressed_buffer_size); in archive_compressor_compress_open()
172 if (state->compressed == NULL) { in archive_compressor_compress_open()
175 free(state); in archive_compressor_compress_open()
183 state in archive_compressor_compress_open()
227 struct private_data *state = f->data; output_byte() local
246 struct private_data *state = f->data; output_code() local
312 struct private_data *state = f->data; output_flush() local
333 struct private_data *state = (struct private_data *)f->data; archive_compressor_compress_write() local
421 struct private_data *state = (struct private_data *)f->data; archive_compressor_compress_close() local
440 struct private_data *state = (struct private_data *)f->data; archive_compressor_compress_free() local
[all...]
/freebsd-src/contrib/tcpdump/missing/
H A Dsnprintf.c54 * Common state
57 struct state {
63 int (*append_char)(struct state *, unsigned char);
64 int (*reserve)(struct state *, size_t);
70 as_reserve (struct state *state, size_t n)
72 if (state->s + n > state->theend) {
73 int off = state->s - state
59 struct state { global() struct
65 append_charstate global() argument
66 reservestate global() argument
107 append_number(struct state * state,unsigned long num,unsigned base,char * rep,int width,int prec,int flags,int minusp) append_number() argument
196 append_string(struct state * state,unsigned char * arg,int width,int prec,int flags) append_string() argument
227 append_char(struct state * state,unsigned char arg,int width,int flags) append_char() argument
262 xyzprintf(struct state * state,const char * char_format,va_list ap) xyzprintf() argument
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DContainerModeling.cpp57 void printState(raw_ostream &Out, ProgramStateRef State, const char *NL,
64 void checkLiveSymbols(ProgramStateRef State, SymbolReaper &SR) const;
105 bool hasSubscriptOperator(ProgramStateRef State, const MemRegion *Reg);
106 bool frontModifiable(ProgramStateRef State, const MemRegion *Reg);
107 bool backModifiable(ProgramStateRef State, const MemRegion *Reg);
108 SymbolRef getContainerBegin(ProgramStateRef State, const MemRegion *Cont);
109 SymbolRef getContainerEnd(ProgramStateRef State, const MemRegion *Cont);
110 ProgramStateRef createContainerBegin(ProgramStateRef State,
114 ProgramStateRef createContainerEnd(ProgramStateRef State, const MemRegion *Cont,
118 ProgramStateRef setContainerData(ProgramStateRef State, cons
207 checkLiveSymbols(ProgramStateRef State,SymbolReaper & SR) const checkLiveSymbols() argument
229 auto State = C.getState(); checkDeadSymbols() local
255 auto State = C.getState(); handleBegin() local
277 auto State = C.getState(); handleEnd() local
299 auto State = C.getState(); handleAssignment() local
374 auto State = C.getState(); handleAssign() local
389 auto State = C.getState(); handleClear() local
417 auto State = C.getState(); handlePushBack() local
456 auto State = C.getState(); handlePopBack() local
497 auto State = C.getState(); handlePushFront() local
531 auto State = C.getState(); handlePopFront() local
567 auto State = C.getState(); handleInsert() local
598 auto State = C.getState(); handleErase() local
631 auto State = C.getState(); handleErase() local
662 auto State = C.getState(); handleEraseAfter() local
683 auto State = C.getState(); handleEraseAfter() local
722 printState(raw_ostream & Out,ProgramStateRef State,const char * NL,const char * Sep) const printState() argument
762 getCXXRecordDecl(ProgramStateRef State,const MemRegion * Reg) getCXXRecordDecl() argument
776 hasSubscriptOperator(ProgramStateRef State,const MemRegion * Reg) hasSubscriptOperator() argument
792 frontModifiable(ProgramStateRef State,const MemRegion * Reg) frontModifiable() argument
807 backModifiable(ProgramStateRef State,const MemRegion * Reg) backModifiable() argument
822 getContainerBegin(ProgramStateRef State,const MemRegion * Cont) getContainerBegin() argument
830 getContainerEnd(ProgramStateRef State,const MemRegion * Cont) getContainerEnd() argument
838 createContainerBegin(ProgramStateRef State,const MemRegion * Cont,const Expr * E,QualType T,const LocationContext * LCtx,unsigned BlockCount) createContainerBegin() argument
861 createContainerEnd(ProgramStateRef State,const MemRegion * Cont,const Expr * E,QualType T,const LocationContext * LCtx,unsigned BlockCount) createContainerEnd() argument
884 setContainerData(ProgramStateRef State,const MemRegion * Cont,const ContainerData & CData) setContainerData() argument
890 processIteratorPositions(ProgramStateRef State,Condition Cond,Process Proc) processIteratorPositions() argument
921 invalidateAllIteratorPositions(ProgramStateRef State,const MemRegion * Cont) invalidateAllIteratorPositions() argument
933 invalidateAllIteratorPositionsExcept(ProgramStateRef State,const MemRegion * Cont,SymbolRef Offset,BinaryOperator::Opcode Opc) invalidateAllIteratorPositionsExcept() argument
946 invalidateIteratorPositions(ProgramStateRef State,SymbolRef Offset,BinaryOperator::Opcode Opc) invalidateIteratorPositions() argument
958 invalidateIteratorPositions(ProgramStateRef State,SymbolRef Offset1,BinaryOperator::Opcode Opc1,SymbolRef Offset2,BinaryOperator::Opcode Opc2) invalidateIteratorPositions() argument
973 reassignAllIteratorPositions(ProgramStateRef State,const MemRegion * Cont,const MemRegion * NewCont) reassignAllIteratorPositions() argument
985 reassignAllIteratorPositionsUnless(ProgramStateRef State,const MemRegion * Cont,const MemRegion * NewCont,SymbolRef Offset,BinaryOperator::Opcode Opc) reassignAllIteratorPositionsUnless() argument
1004 rebaseSymbolInIteratorPositionsIf(ProgramStateRef State,SValBuilder & SVB,SymbolRef OldSym,SymbolRef NewSym,SymbolRef CondSym,BinaryOperator::Opcode Opc) rebaseSymbolInIteratorPositionsIf() argument
1019 rebaseSymbol(ProgramStateRef State,SValBuilder & SVB,SymbolRef OrigExpr,SymbolRef OldExpr,SymbolRef NewSym) rebaseSymbol() argument
1035 hasLiveIterators(ProgramStateRef State,const MemRegion * Cont) hasLiveIterators() argument
[all...]
/freebsd-src/usr.sbin/daemon/
H A Ddaemon.c66 MODE_SUPERVISE, /* initial supervision state */
68 MODE_NOCHILD, /* child is terminated, final state of the event loop */
183 struct daemon_state state; in main()
185 daemon_state_init(&state); in main()
211 state.keep_cur_workdir = 0; in main()
214 state.restart_count = (int)strtonum(optarg, 0, in main()
221 state.keep_fds_open = 0; in main()
224 state.log_reopen = true; in main()
227 state.syslog_facility = get_log_mapping(optarg, in main()
229 if (state in main()
179 struct daemon_state state; main() local
361 daemon_exec(struct daemon_state * state) daemon_exec() argument
389 daemon_eventloop(struct daemon_state * state) daemon_eventloop() argument
532 daemon_sleep(struct daemon_state * state) daemon_sleep() argument
547 open_pid_files(struct daemon_state * state) open_pid_files() argument
616 listen_child(struct daemon_state * state) listen_child() argument
677 do_output(const unsigned char * buf,size_t len,struct daemon_state * state) do_output() argument
707 reopen_log(struct daemon_state * state) reopen_log() argument
719 daemon_state_init(struct daemon_state * state) daemon_state_init() argument
753 daemon_terminate(struct daemon_state * state) daemon_terminate() argument
785 daemon_is_child_dead(struct daemon_state * state) daemon_is_child_dead() argument
806 daemon_set_child_pipe(struct daemon_state * state) daemon_set_child_pipe() argument
[all...]
/freebsd-src/contrib/bearssl/src/symcipher/
H A Daes_small_enc.c30 add_round_key(unsigned *state, const uint32_t *skeys) in add_round_key() argument
38 state[i + 0] ^= (unsigned)(k >> 24); in add_round_key()
39 state[i + 1] ^= (unsigned)(k >> 16) & 0xFF; in add_round_key()
40 state[i + 2] ^= (unsigned)(k >> 8) & 0xFF; in add_round_key()
41 state[i + 3] ^= (unsigned)k & 0xFF; in add_round_key()
46 sub_bytes(unsigned *state) in sub_bytes() argument
51 state[i] = S[state[i]]; in sub_bytes()
56 shift_rows(unsigned *state) in shift_rows() argument
60 tmp = state[1]; in shift_rows()
61 state[1] = state[5]; in shift_rows()
[all …]

12345678910>>...332