Home
last modified time | relevance | path

Searched refs:extra_size (Results 1 – 5 of 5) sorted by relevance

/optee_os/core/drivers/crypto/stm32/
H A Dstm32_cryp.c604 if (ctx->extra_size) { in do_from_header_to_phase()
606 memset((uint8_t *)ctx->extra + ctx->extra_size, 0, in do_from_header_to_phase()
607 ctx->block_u32 * sizeof(uint32_t) - ctx->extra_size); in do_from_header_to_phase()
613 ctx->assoc_len += (ctx->extra_size) * INT8_BIT; in do_from_header_to_phase()
614 ctx->extra_size = 0; in do_from_header_to_phase()
650 ctx->extra_size = 0; in stm32_cryp_init()
817 if (ctx->extra_size && in stm32_cryp_update_assodata()
818 (ctx->extra_size + data_size >= in stm32_cryp_update_assodata()
822 memcpy(block, ctx->extra, ctx->extra_size); in stm32_cryp_update_assodata()
823 memcpy((uint8_t *)block + ctx->extra_size, data, in stm32_cryp_update_assodata()
[all …]
H A Dstm32_saes.c495 if (ctx->extra_size) { in do_from_header_to_phase()
497 memset((uint8_t *)ctx->extra + ctx->extra_size, 0, in do_from_header_to_phase()
498 AES_BLOCK_SIZE - ctx->extra_size); in do_from_header_to_phase()
508 ctx->assoc_len += ctx->extra_size * INT8_BIT; in do_from_header_to_phase()
509 ctx->extra_size = U(0); in do_from_header_to_phase()
741 if (ctx->extra_size && in stm32_saes_update_assodata()
742 ((ctx->extra_size + data_size) >= AES_BLOCK_SIZE)) { in stm32_saes_update_assodata()
745 memcpy(block, ctx->extra, ctx->extra_size); in stm32_saes_update_assodata()
746 memcpy((uint8_t *)block + ctx->extra_size, data, in stm32_saes_update_assodata()
747 AES_BLOCK_SIZE - ctx->extra_size); in stm32_saes_update_assodata()
[all …]
H A Dstm32_cryp.h61 size_t extra_size; member
H A Dstm32_saes.h43 size_t extra_size; member
/optee_os/ta/trusted_keys/
H A Dentry.c61 uint8_t *extra, uint16_t extra_size) in derive_unique_key() argument
78 if (extra && extra_size) { in derive_unique_key()
80 params[0].memref.size = extra_size; in derive_unique_key()