Home
last modified time | relevance | path

Searched refs:buf_cryp (Results 1 – 4 of 4) sorted by relevance

/optee_os-3.20.0/core/crypto/
A Daes-gcm-sw.c57 void *buf_cryp = state->buf_cryp; in encrypt_block() local
59 internal_aes_gcm_xor_block(buf_cryp, src); in encrypt_block()
60 internal_aes_gcm_ghash_update(state, buf_cryp, NULL, 0); in encrypt_block()
61 memcpy(dst, buf_cryp, sizeof(state->buf_cryp)); in encrypt_block()
64 enc_key->rounds, state->ctr, state->buf_cryp); in encrypt_block()
96 void *buf_cryp = state->buf_cryp; in decrypt_block() local
99 enc_key->rounds, state->ctr, buf_cryp); in decrypt_block()
102 internal_aes_gcm_xor_block(buf_cryp, src); in decrypt_block()
104 memcpy(dst, buf_cryp, sizeof(state->buf_cryp)); in decrypt_block()
A Daes-gcm.c117 state->ctr, state->buf_cryp); in __gcm_init()
217 state->buf_cryp); in __gcm_update_payload()
219 xor_buf(state->buf_cryp + state->buf_pos, s, n); in __gcm_update_payload()
220 memcpy(d, state->buf_cryp + state->buf_pos, n); in __gcm_update_payload()
223 state->buf_cryp + state->buf_pos, n); in __gcm_update_payload()
242 state->buf_cryp); in __gcm_update_payload()
/optee_os-3.20.0/core/arch/arm/crypto/
A Daes-gcm-ce.c101 void *buf_cryp = state->buf_cryp; in encrypt_pl() local
104 ce_aes_xor_block(buf_cryp, buf_cryp, src); in encrypt_pl()
106 pmull_ghash_update(1, dg, buf_cryp, &state->ghash_key, NULL); in encrypt_pl()
107 memcpy(dst, buf_cryp, TEE_AES_BLOCK_SIZE); in encrypt_pl()
109 ce_aes_ecb_encrypt(buf_cryp, (const uint8_t *)state->ctr, in encrypt_pl()
144 uint8_t ks[sizeof(state->buf_cryp) * 2] = { 0 }; in update_payload_2block()
155 memcpy(ks, state->buf_cryp, sizeof(state->buf_cryp)); in update_payload_2block()
158 pmull_gcm_encrypt_block(ks + sizeof(state->buf_cryp), in update_payload_2block()
163 memcpy(state->buf_cryp, ks, TEE_AES_BLOCK_SIZE); in update_payload_2block()
/optee_os-3.20.0/core/include/crypto/
A Dinternal_aes-gcm.h42 uint8_t buf_cryp[TEE_AES_BLOCK_SIZE]; member

Completed in 6 milliseconds