Lines Matching refs:ctr
74 COMPILE_TIME_ASSERT(sizeof(state->ctr) == TEE_AES_BLOCK_SIZE); in __gcm_init()
85 memcpy(state->ctr, nonce, nonce_len); 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()
216 ek->rounds, state->ctr, in __gcm_update_payload()
241 ek->rounds, state->ctr, in __gcm_update_payload()
350 c = TEE_U64_FROM_BIG_ENDIAN(state->ctr[1]) + 1; in internal_aes_gcm_inc_ctr()
351 state->ctr[1] = TEE_U64_TO_BIG_ENDIAN(c); in internal_aes_gcm_inc_ctr()
353 c = TEE_U64_FROM_BIG_ENDIAN(state->ctr[0]) + 1; in internal_aes_gcm_inc_ctr()
354 state->ctr[0] = TEE_U64_TO_BIG_ENDIAN(c); in internal_aes_gcm_inc_ctr()
362 c = TEE_U64_FROM_BIG_ENDIAN(state->ctr[1]) - 1; in internal_aes_gcm_dec_ctr()
363 state->ctr[1] = TEE_U64_TO_BIG_ENDIAN(c); in internal_aes_gcm_dec_ctr()
365 c = TEE_U64_FROM_BIG_ENDIAN(state->ctr[0]) - 1; in internal_aes_gcm_dec_ctr()
366 state->ctr[0] = TEE_U64_TO_BIG_ENDIAN(c); in internal_aes_gcm_dec_ctr()