Home
last modified time | relevance | path

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

123456

/optee_os-3.20.0/core/lib/zlib/
A Dinflate.c139 state->lencode = state->distcode = state->next = state->codes;
425 zmemcpy(state->window, end - state->wsize, state->wsize);
427 state->whave = state->wsize;
437 state->whave = state->wsize;
441 if (state->wnext == state->wsize) state->wnext = 0;
442 if (state->whave < state->wsize) state->whave += dist;
961 state->next = state->codes;
976 while (state->have < state->nlen + state->ndist) {
1036 state->next = state->codes;
1120 state->was = state->length;
[all …]
A Dinffast.c82 state = (struct inflate_state FAR *)strm->state;
89 dmax = state->dmax;
91 wsize = state->wsize;
92 whave = state->whave;
93 wnext = state->wnext;
94 window = state->window;
95 hold = state->hold;
96 bits = state->bits;
97 lcode = state->lencode;
305 state->hold = hold;
[all …]
/optee_os-3.20.0/core/crypto/
A Daes-gcm.c79 memset(state, 0, sizeof(*state)); in __gcm_init()
91 memcpy(state->ctr, state->hash_state, sizeof(state->ctr)); in __gcm_init()
96 state->ctr, state->buf_tag); in __gcm_init()
117 state->ctr, state->buf_cryp); in __gcm_init()
200 if (!state->payload_bytes && state->buf_pos) { in __gcm_update_payload()
202 memset(state->buf_hash + state->buf_pos, 0, in __gcm_update_payload()
222 memcpy(state->buf_hash + state->buf_pos, in __gcm_update_payload()
278 memset(state->buf_hash + state->buf_pos, 0, in operation_final()
283 ghash_update_lengths(state, state->aad_bytes, state->payload_bytes); in operation_final()
285 xor_buf(state->buf_tag, state->hash_state, state->tag_len); in operation_final()
[all …]
A Daes-gcm-sw.c20 state->ctr, state->ghash_key.hash_subkey); in internal_aes_gcm_set_key()
27 void *y = state->hash_state; in ghash_update_block()
44 ghash_update_block(state, head); in internal_aes_gcm_ghash_update()
48 ghash_update_block(state, in internal_aes_gcm_ghash_update()
57 void *buf_cryp = state->buf_cryp; in encrypt_block()
64 enc_key->rounds, state->ctr, state->buf_cryp); in encrypt_block()
65 internal_aes_gcm_inc_ctr(state); in encrypt_block()
79 encrypt_block(state, ek, s, d); in encrypt_pl()
96 void *buf_cryp = state->buf_cryp; in decrypt_block()
100 internal_aes_gcm_inc_ctr(state); in decrypt_block()
[all …]
A Drng_fortuna.c57 } state; variable
122 state.pool_ctx[n] = NULL; in fortuna_done()
125 state.reseed_ctx = NULL; in fortuna_done()
127 state.ctx = NULL; in fortuna_done()
139 if (state.ctx) in crypto_rng_init()
142 memset(&state, 0, sizeof(state)); in crypto_rng_init()
168 state.ctx = ctx; in crypto_rng_init()
242 state.pool0_length = l; in add_event()
444 state.reseed_count++; in maybe_reseed()
456 state.pool0_length = 0; in maybe_reseed()
[all …]
A Dsm3.c113 A = ctx->state[0]; in sm3_process()
114 B = ctx->state[1]; in sm3_process()
115 C = ctx->state[2]; in sm3_process()
116 D = ctx->state[3]; in sm3_process()
117 E = ctx->state[4]; in sm3_process()
118 F = ctx->state[5]; in sm3_process()
119 G = ctx->state[6]; in sm3_process()
120 H = ctx->state[7]; in sm3_process()
152 ctx->state[0] ^= A; in sm3_process()
153 ctx->state[1] ^= B; in sm3_process()
[all …]
/optee_os-3.20.0/lib/libunw/
A Dunwind_arm32.c165 if (state->byte == 0) { in unwind_exec_read_byte()
166 state->byte = 3; in unwind_exec_read_byte()
168 state->entries--; in unwind_exec_read_byte()
170 state->byte--; in unwind_exec_read_byte()
271 state->entries = 0; in unwind_exec_insn()
335 state->byte = 2; in unwind_tab()
336 state->entries = 1; in unwind_tab()
338 state->byte = 1; in unwind_tab()
354 state->registers[PC] = state->registers[LR]; in unwind_tab()
359 if (state->start_pc != state->registers[PC]) in unwind_tab()
[all …]
/optee_os-3.20.0/core/arch/arm/kernel/
A Dvfp.c31 state->fpexc = fpexc; in vfp_lazy_save_state_init()
42 state->fpscr = vfp_read_fpscr(); in vfp_lazy_save_state_final()
43 vfp_save_extension_regs(state->reg); in vfp_lazy_save_state_final()
60 vfp_write_fpscr(state->fpscr); in vfp_lazy_restore_state()
63 vfp_write_fpexc(state->fpexc); in vfp_lazy_restore_state()
93 state->cpacr_el1 = read_cpacr_el1(); in vfp_lazy_save_state_init()
103 state->fpcr = read_fpcr(); in vfp_lazy_save_state_final()
104 state->fpsr = read_fpsr(); in vfp_lazy_save_state_final()
120 write_fpcr(state->fpcr); in vfp_lazy_restore_state()
121 write_fpsr(state->fpsr); in vfp_lazy_restore_state()
[all …]
A Dunwind_arm32.c62 struct unwind_state_arm32 state = { }; in unw_get_kernel_stack() local
71 state.registers[7] = read_r7(); in unw_get_kernel_stack()
73 state.registers[FP] = read_fp(); in unw_get_kernel_stack()
74 state.registers[SP] = read_sp(); in unw_get_kernel_stack()
75 state.registers[LR] = read_lr(); in unw_get_kernel_stack()
89 addr[n] = state.registers[PC]; in unw_get_kernel_stack()
110 struct unwind_state_arm32 state = { }; in print_kernel_stack() local
115 state.registers[7] = read_r7(); in print_kernel_stack()
117 state.registers[FP] = read_fp(); in print_kernel_stack()
118 state.registers[SP] = read_sp(); in print_kernel_stack()
[all …]
A Dunwind_arm64.c57 struct unwind_state_arm64 state = { in unw_get_kernel_stack() local
62 while (unwind_stack_arm64(&state, stack, stack_size)) { in unw_get_kernel_stack()
67 addr[n] = state.pc; in unw_get_kernel_stack()
89 struct unwind_state_arm64 state = { }; in print_kernel_stack() local
93 state.pc = read_pc(); in print_kernel_stack()
94 state.fp = read_fp(); in print_kernel_stack()
99 print_stack_arm64(&state, stack_start, stack_end - stack_start); in print_kernel_stack()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dchacha20.c86 state[a] += state[b]; in chacha20_quarter_round()
87 state[d] ^= state[a]; in chacha20_quarter_round()
88 state[d] = ROTL32( state[d], 16 ); in chacha20_quarter_round()
91 state[c] += state[d]; in chacha20_quarter_round()
92 state[b] ^= state[c]; in chacha20_quarter_round()
96 state[a] += state[b]; in chacha20_quarter_round()
97 state[d] ^= state[a]; in chacha20_quarter_round()
98 state[d] = ROTL32( state[d], 8 ); in chacha20_quarter_round()
101 state[c] += state[d]; in chacha20_quarter_round()
102 state[b] ^= state[c]; in chacha20_quarter_round()
[all …]
/optee_os-3.20.0/core/arch/arm/crypto/
A Daes-gcm-ce.c55 ghash_reflect(state->ghash_key.h, k); in internal_aes_gcm_set_key()
58 ghash_reflect(state->ghash_key.h2, h); in internal_aes_gcm_set_key()
61 ghash_reflect(state->ghash_key.h3, h); in internal_aes_gcm_set_key()
64 ghash_reflect(state->ghash_key.h4, h); in internal_aes_gcm_set_key()
86 get_be_block(dg, state->hash_state); in internal_aes_gcm_ghash_update()
94 put_be_block(state->hash_state, dg); in internal_aes_gcm_ghash_update()
101 void *buf_cryp = state->buf_cryp; in encrypt_pl()
112 internal_aes_gcm_inc_ctr(state); in encrypt_pl()
155 memcpy(ks, state->buf_cryp, sizeof(state->buf_cryp)); in update_payload_2block()
160 internal_aes_gcm_inc_ctr(state); in update_payload_2block()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/
A Danubis.c1026 ulong32 state[4]; in anubis_crypt() local
1034 state[i] = in anubis_crypt()
1047 T0[(state[0] >> 24) & 0xff] ^ in anubis_crypt()
1048 T1[(state[1] >> 24) & 0xff] ^ in anubis_crypt()
1049 T2[(state[2] >> 24) & 0xff] ^ in anubis_crypt()
1050 T3[(state[3] >> 24) & 0xff] ^ in anubis_crypt()
1053 T0[(state[0] >> 16) & 0xff] ^ in anubis_crypt()
1070 state[0] = inter[0]; in anubis_crypt()
1071 state[1] = inter[1]; in anubis_crypt()
1072 state[2] = inter[2]; in anubis_crypt()
[all …]
/optee_os-3.20.0/core/include/tee/
A Dtee_svc_cryp.h35 uint32_t *state);
37 TEE_Result syscall_cryp_state_free(unsigned long state);
41 TEE_Result syscall_hash_init(unsigned long state, const void *iv,
48 TEE_Result syscall_cipher_init(unsigned long state, const void *iv,
55 TEE_Result syscall_cryp_derive_key(unsigned long state,
64 TEE_Result syscall_authenc_update_aad(unsigned long state,
66 TEE_Result syscall_authenc_update_payload(unsigned long state,
69 TEE_Result syscall_authenc_enc_final(unsigned long state,
72 TEE_Result syscall_authenc_dec_final(unsigned long state,
76 TEE_Result syscall_asymm_operate(unsigned long state,
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsha256_accel.c71 void *state = md->sha256.state; in sha256_compress_nblocks() local
75 crypto_accel_sha256_compress(state, buf, blocks); in sha256_compress_nblocks()
95 md->sha256.state[0] = 0x6A09E667UL; in sha256_init()
96 md->sha256.state[1] = 0xBB67AE85UL; in sha256_init()
97 md->sha256.state[2] = 0x3C6EF372UL; in sha256_init()
98 md->sha256.state[3] = 0xA54FF53AUL; in sha256_init()
99 md->sha256.state[4] = 0x510E527FUL; in sha256_init()
100 md->sha256.state[5] = 0x9B05688CUL; in sha256_init()
101 md->sha256.state[6] = 0x1F83D9ABUL; in sha256_init()
102 md->sha256.state[7] = 0x5BE0CD19UL; in sha256_init()
[all …]
A Dsha512_accel.c39 void *state = md->sha512.state; in sha512_compress_nblocks() local
43 crypto_accel_sha512_compress(state, buf, blocks); in sha512_compress_nblocks()
63 md->sha512.state[0] = CONST64(0x6a09e667f3bcc908); in sha512_init()
64 md->sha512.state[1] = CONST64(0xbb67ae8584caa73b); in sha512_init()
65 md->sha512.state[2] = CONST64(0x3c6ef372fe94f82b); in sha512_init()
66 md->sha512.state[3] = CONST64(0xa54ff53a5f1d36f1); in sha512_init()
67 md->sha512.state[4] = CONST64(0x510e527fade682d1); in sha512_init()
68 md->sha512.state[5] = CONST64(0x9b05688c2b3e6c1f); in sha512_init()
69 md->sha512.state[6] = CONST64(0x1f83d9abfb41bd6b); in sha512_init()
70 md->sha512.state[7] = CONST64(0x5be0cd19137e2179); in sha512_init()
[all …]
A Dsha1_accel.c69 void *state = md->sha1.state; in sha1_compress_nblocks() local
71 COMPILE_TIME_ASSERT(sizeof(md->sha1.state[0]) == sizeof(uint32_t)); in sha1_compress_nblocks()
73 crypto_accel_sha1_compress(state, buf, blocks); in sha1_compress_nblocks()
99 md->sha1.state[0] = 0x67452301UL; in sha1_init()
100 md->sha1.state[1] = 0xefcdab89UL; in sha1_init()
101 md->sha1.state[2] = 0x98badcfeUL; in sha1_init()
102 md->sha1.state[3] = 0x10325476UL; in sha1_init()
103 md->sha1.state[4] = 0xc3d2e1f0UL; in sha1_init()
155 STORE32H(md->sha1.state[i], out+(4*i)); in sha1_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/pelican/
A Dpelican.c41 zeromem(pelmac->state, 16); in pelican_init()
42 aes_ecb_encrypt(pelmac->state, pelmac->state, &pelmac->K); in pelican_init()
53 LOAD32H(s0, pelmac->state ); in s_four_rounds()
54 LOAD32H(s1, pelmac->state + 4); in s_four_rounds()
55 LOAD32H(s2, pelmac->state + 8); in s_four_rounds()
56 LOAD32H(s3, pelmac->state + 12); in s_four_rounds()
80 STORE32H(s0, pelmac->state ); in s_four_rounds()
81 STORE32H(s1, pelmac->state + 4); in s_four_rounds()
82 STORE32H(s2, pelmac->state + 8); in s_four_rounds()
83 STORE32H(s3, pelmac->state + 12); in s_four_rounds()
[all …]
/optee_os-3.20.0/lib/libunw/include/unw/
A Dunwind.h56 bool unwind_stack_arm32(struct unwind_state_arm32 *state,
59 void print_stack_arm32(struct unwind_state_arm32 *state,
62 static inline bool unwind_stack_arm32(struct unwind_state_arm32 *state __unused, in unwind_stack_arm32()
69 static inline void print_stack_arm32(struct unwind_state_arm32 *state __unused, in print_stack_arm32()
95 bool unwind_stack_arm64(struct unwind_state_arm64 *state,
98 void print_stack_arm64(struct unwind_state_arm64 *state,
101 static inline bool unwind_stack_arm64(struct unwind_state_arm64 *state __unused, in unwind_stack_arm64()
108 static inline void print_stack_arm64(struct unwind_state_arm64 *state __unused, in print_stack_arm64()
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/sha2/
A Dsha224.c42 md->sha256.state[0] = 0xc1059ed8UL; in sha224_init()
43 md->sha256.state[1] = 0x367cd507UL; in sha224_init()
44 md->sha256.state[2] = 0x3070dd17UL; in sha224_init()
45 md->sha256.state[3] = 0xf70e5939UL; in sha224_init()
46 md->sha256.state[4] = 0xffc00b31UL; in sha224_init()
47 md->sha256.state[5] = 0x68581511UL; in sha224_init()
48 md->sha256.state[6] = 0x64f98fa7UL; in sha224_init()
49 md->sha256.state[7] = 0xbefa4fa4UL; in sha224_init()
A Dsha512_224.c41 md->sha512.state[0] = CONST64(0x8C3D37C819544DA2); in sha512_224_init()
42 md->sha512.state[1] = CONST64(0x73E1996689DCD4D6); in sha512_224_init()
43 md->sha512.state[2] = CONST64(0x1DFAB7AE32FF9C82); in sha512_224_init()
44 md->sha512.state[3] = CONST64(0x679DD514582F9FCF); in sha512_224_init()
45 md->sha512.state[4] = CONST64(0x0F6D2B697BD44DA8); in sha512_224_init()
46 md->sha512.state[5] = CONST64(0x77E36F7304C48942); in sha512_224_init()
47 md->sha512.state[6] = CONST64(0x3F9D85A86A1D36C8); in sha512_224_init()
48 md->sha512.state[7] = CONST64(0x1112E6AD91D692A1); in sha512_224_init()
A Dsha384.c41 md->sha512.state[0] = CONST64(0xcbbb9d5dc1059ed8); in sha384_init()
42 md->sha512.state[1] = CONST64(0x629a292a367cd507); in sha384_init()
43 md->sha512.state[2] = CONST64(0x9159015a3070dd17); in sha384_init()
44 md->sha512.state[3] = CONST64(0x152fecd8f70e5939); in sha384_init()
45 md->sha512.state[4] = CONST64(0x67332667ffc00b31); in sha384_init()
46 md->sha512.state[5] = CONST64(0x8eb44a8768581511); in sha384_init()
47 md->sha512.state[6] = CONST64(0xdb0c2e0d64f98fa7); in sha384_init()
48 md->sha512.state[7] = CONST64(0x47b5481dbefa4fa4); in sha384_init()
A Dsha512_256.c41 md->sha512.state[0] = CONST64(0x22312194FC2BF72C); in sha512_256_init()
42 md->sha512.state[1] = CONST64(0x9F555FA3C84C64C2); in sha512_256_init()
43 md->sha512.state[2] = CONST64(0x2393B86B6F53B151); in sha512_256_init()
44 md->sha512.state[3] = CONST64(0x963877195940EABD); in sha512_256_init()
45 md->sha512.state[4] = CONST64(0x96283EE2A88EFFE3); in sha512_256_init()
46 md->sha512.state[5] = CONST64(0xBE5E1E2553863992); in sha512_256_init()
47 md->sha512.state[6] = CONST64(0x2B0199FC2C85B8AA); in sha512_256_init()
48 md->sha512.state[7] = CONST64(0x0EB72DDC81C52CA2); in sha512_256_init()
/optee_os-3.20.0/core/drivers/imx/dcp/
A Ddcp_huk.c24 enum dcp_huk_state state; member
26 } dcp_huk = { .state = DCP_HUK_EMPTY };
78 dcp_huk.state = DCP_HUK_ERROR; in tee_otp_get_hw_unique_key()
82 if (dcp_huk.state == DCP_HUK_EMPTY) { in tee_otp_get_hw_unique_key()
85 dcp_huk.state = DCP_HUK_ERROR; in tee_otp_get_hw_unique_key()
88 dcp_huk.state = DCP_HUK_GENERATED; in tee_otp_get_hw_unique_key()
90 } else if (dcp_huk.state == DCP_HUK_GENERATED) { in tee_otp_get_hw_unique_key()
/optee_os-3.20.0/lib/libutee/include/
A Dutee_syscalls.h86 uint32_t *state);
88 TEE_Result _utee_cryp_state_free(unsigned long state);
92 TEE_Result _utee_hash_update(unsigned long state, const void *chunk,
94 TEE_Result _utee_hash_final(unsigned long state, const void *chunk,
97 TEE_Result _utee_cipher_init(unsigned long state, const void *iv,
99 TEE_Result _utee_cipher_update(unsigned long state, const void *src,
101 TEE_Result _utee_cipher_final(unsigned long state, const void *src,
128 TEE_Result _utee_cryp_derive_key(unsigned long state,
140 TEE_Result _utee_authenc_update_payload(unsigned long state,
152 TEE_Result _utee_asymm_operate(unsigned long state,
[all …]

Completed in 34 milliseconds

123456