| /optee_os/core/crypto/ |
| H A D | aes-gcm-sw.c | 50 n * TEE_AES_BLOCK_SIZE); in internal_aes_gcm_ghash_update() 76 const void *s = src + n * TEE_AES_BLOCK_SIZE; in encrypt_pl() 77 void *d = dst + n * TEE_AES_BLOCK_SIZE; in encrypt_pl() 84 void *d = dst + n * TEE_AES_BLOCK_SIZE; in encrypt_pl() 86 memcpy(tmp, src + n * TEE_AES_BLOCK_SIZE, sizeof(tmp)); in encrypt_pl() 115 const void *s = src + n * TEE_AES_BLOCK_SIZE; in decrypt_pl() 116 void *d = dst + n * TEE_AES_BLOCK_SIZE; in decrypt_pl() 123 void *d = dst + n * TEE_AES_BLOCK_SIZE; in decrypt_pl() 125 memcpy(tmp, src + n * TEE_AES_BLOCK_SIZE, sizeof(tmp)); in decrypt_pl()
|
| H A D | aes-gcm.c | 30 size_t n = len / TEE_AES_BLOCK_SIZE; in ghash_update_pad_zero() 49 if (len - n * TEE_AES_BLOCK_SIZE) { in ghash_update_pad_zero() 51 memcpy(block, data + n * TEE_AES_BLOCK_SIZE, in ghash_update_pad_zero() 52 len - n * TEE_AES_BLOCK_SIZE); in ghash_update_pad_zero() 65 COMPILE_TIME_ASSERT(sizeof(len_fields) == TEE_AES_BLOCK_SIZE); in ghash_update_lengths() 74 COMPILE_TIME_ASSERT(sizeof(state->ctr) == TEE_AES_BLOCK_SIZE); in __gcm_init() 156 l < TEE_AES_BLOCK_SIZE) { in __gcm_update_aad() 157 n = MIN(TEE_AES_BLOCK_SIZE - state->buf_pos, l); in __gcm_update_aad() 161 if (state->buf_pos != TEE_AES_BLOCK_SIZE) in __gcm_update_aad() 171 n = l / TEE_AES_BLOCK_SIZE; in __gcm_update_aad() [all …]
|
| H A D | crypto.c | 231 *size = TEE_AES_BLOCK_SIZE; in crypto_cipher_get_block_size()
|
| /optee_os/core/include/crypto/ |
| H A D | internal_aes-gcm.h | 38 uint8_t hash_state[TEE_AES_BLOCK_SIZE]; 40 uint8_t buf_tag[TEE_AES_BLOCK_SIZE]; 41 uint8_t buf_hash[TEE_AES_BLOCK_SIZE]; 42 uint8_t buf_cryp[TEE_AES_BLOCK_SIZE]; 104 return !((vaddr_t)p & (TEE_AES_BLOCK_SIZE - 1)); in internal_aes_gcm_ptr_is_block_aligned()
|
| /optee_os/core/arch/arm/crypto/ |
| H A D | aes-gcm-ce.c | 107 memcpy(dst, buf_cryp, TEE_AES_BLOCK_SIZE); in encrypt_pl() 114 src += TEE_AES_BLOCK_SIZE; in encrypt_pl() 115 dst += TEE_AES_BLOCK_SIZE; in encrypt_pl() 129 src += TEE_AES_BLOCK_SIZE; in decrypt_pl() 130 dst += TEE_AES_BLOCK_SIZE; in decrypt_pl() 163 memcpy(state->buf_cryp, ks, TEE_AES_BLOCK_SIZE); in update_payload_2block() 194 const void *s = (const uint8_t *)src + nb * TEE_AES_BLOCK_SIZE; in internal_aes_gcm_update_payload_blocks() 195 void *d = (uint8_t *)dst + nb * TEE_AES_BLOCK_SIZE; in internal_aes_gcm_update_payload_blocks()
|
| H A D | aes_armv8a_ce.c | 56 uint8_t b[TEE_AES_BLOCK_SIZE];
|
| /optee_os/core/tee/ |
| H A D | tee_fs_key_manager.c | 176 static TEE_Result aes_ecb(uint8_t out[TEE_AES_BLOCK_SIZE], in aes_ecb() argument 177 const uint8_t in[TEE_AES_BLOCK_SIZE], in aes_ecb() argument 193 TEE_AES_BLOCK_SIZE, out); in aes_ecb() 205 static TEE_Result essiv(uint8_t iv[TEE_AES_BLOCK_SIZE], in essiv() argument 211 uint8_t pad_blkid[TEE_AES_BLOCK_SIZE] = { 0, }; in essiv() 236 uint8_t iv[TEE_AES_BLOCK_SIZE]; in tee_fs_crypt_block() 259 0, iv, TEE_AES_BLOCK_SIZE); in tee_fs_crypt_block()
|
| H A D | tadb.c | 26 #define TADB_IV_SIZE TEE_AES_BLOCK_SIZE 27 #define TADB_TAG_SIZE TEE_AES_BLOCK_SIZE
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | cmac.c | 75 size_t block_size = TEE_AES_BLOCK_SIZE; in mbed_cmac_final() 76 uint8_t block_digest[TEE_AES_BLOCK_SIZE] = { }; in mbed_cmac_final() 79 COMPILE_TIME_ASSERT(TEE_AES_BLOCK_SIZE >= TEE_DES_BLOCK_SIZE); in mbed_cmac_final()
|
| H A D | aes_ctr.c | 25 unsigned char counter[TEE_AES_BLOCK_SIZE]; 26 unsigned char block[TEE_AES_BLOCK_SIZE];
|
| H A D | aes_ecb.c | 71 size_t block_size = TEE_AES_BLOCK_SIZE; in mbed_aes_ecb_update()
|
| H A D | aes_cbc.c | 25 unsigned char iv[TEE_AES_BLOCK_SIZE];
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing_symm.c | 481 if (param->size % TEE_AES_BLOCK_SIZE) { in tee_init_derive_symm() 488 if (param->size % TEE_AES_BLOCK_SIZE) { in tee_init_derive_symm() 533 sign_sz = TEE_AES_BLOCK_SIZE; in input_hmac_len_is_valid() 665 in_size % TEE_AES_BLOCK_SIZE) in input_data_size_is_valid() 668 in_size % TEE_AES_BLOCK_SIZE) in input_data_size_is_valid() 673 in_size < TEE_AES_BLOCK_SIZE) in input_data_size_is_valid() 676 in_size < TEE_AES_BLOCK_SIZE) in input_data_size_is_valid() 712 sign_sz = TEE_AES_BLOCK_SIZE; in input_sign_size_is_valid() 1146 align = data_sz % TEE_AES_BLOCK_SIZE; in wrap_data_by_symm_enc() 1148 in_sz = data_sz + (TEE_AES_BLOCK_SIZE - align); in wrap_data_by_symm_enc() [all …]
|
| /optee_os/core/drivers/crypto/caam/ae/ |
| H A D | caam_ae_gcm.c | 129 if ((yi_1s_complement + TEE_AES_BLOCK_SIZE) > input_length) in caam_ae_do_block_gcm() 132 corrupted_block_size = TEE_AES_BLOCK_SIZE; in caam_ae_do_block_gcm() 162 TEE_AES_BLOCK_SIZE)); in caam_ae_do_block_gcm() 224 TEE_AES_BLOCK_SIZE)); in caam_ae_do_block_gcm()
|
| H A D | caam_ae_ccm.c | 76 ctr0 = caam_ctx->initial_ctx.data + TEE_AES_BLOCK_SIZE; in caam_ae_ccm_init_ctx() 84 memset(b0, 0, TEE_AES_BLOCK_SIZE); in caam_ae_ccm_init_ctx() 130 memset(ctr0, 0, TEE_AES_BLOCK_SIZE); in caam_ae_ccm_init_ctx()
|
| H A D | caam_ae.c | 32 .size_block = TEE_AES_BLOCK_SIZE, 43 .size_block = TEE_AES_BLOCK_SIZE,
|
| /optee_os/core/lib/libtomcrypt/src/encauth/gcm/ |
| H A D | gcm_mult_h_arm_ce.c | 20 const uint8_t zeroes[TEE_AES_BLOCK_SIZE] = { 0 }; in gcm_mult_h()
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | ctr.c | 21 unsigned char counter[TEE_AES_BLOCK_SIZE]; 22 unsigned char block[TEE_AES_BLOCK_SIZE];
|
| /optee_os/lib/libutee/include/ |
| H A D | utee_defines.h | 181 #define TEE_AES_BLOCK_SIZE 16UL macro 250 return TEE_AES_BLOCK_SIZE; in __tee_alg_get_digest_size()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | xts.c | 23 uint8_t tweak[TEE_AES_BLOCK_SIZE];
|
| /optee_os/core/drivers/crypto/caam/cipher/ |
| H A D | caam_cipher.c | 31 .size_block = TEE_AES_BLOCK_SIZE, 40 .size_block = TEE_AES_BLOCK_SIZE, 49 .size_block = TEE_AES_BLOCK_SIZE, 61 .size_block = TEE_AES_BLOCK_SIZE,
|
| H A D | caam_cipher_mac.c | 28 .size_block = TEE_AES_BLOCK_SIZE, 42 .size_block = TEE_AES_BLOCK_SIZE,
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | authenc.c | 152 memset(b0, 0, TEE_AES_BLOCK_SIZE); in stm32_ae_ccm_generate_b0() 169 uint8_t b1[TEE_AES_BLOCK_SIZE] = { 0 }; in stm32_ae_ccm_push_b1()
|
| /optee_os/core/drivers/ |
| H A D | stm32mp15_huk.c | 111 nonce_len, TEE_AES_BLOCK_SIZE, 0, uid_len); in aes_gcm_encrypt_uid()
|
| /optee_os/core/pta/tests/ |
| H A D | aes_perf.c | 102 sizeof(aes_iv), TEE_AES_BLOCK_SIZE, in init_ctx()
|