Lines Matching refs:data_size
565 uint8_t *data, size_t data_size) in stm32_saes_update_assodata() argument
588 if ((data == NULL) || (data_size == 0U)) { in stm32_saes_update_assodata()
601 while (i < round_down(data_size, AES_BLOCK_SIZE)) { in stm32_saes_update_assodata()
624 if ((last_block) && (i < data_size)) { in stm32_saes_update_assodata()
649 uint8_t *data_in, uint8_t *data_out, size_t data_size) in stm32_saes_update_load() argument
665 if ((data_in == NULL) || (data_size == 0U)) { in stm32_saes_update_load()
682 while (i < round_down(data_size, AES_BLOCK_SIZE)) { in stm32_saes_update_load()
710 if ((last_block) && (i < data_size)) { in stm32_saes_update_load()
714 memcpy(block_in, data_in + i, data_size - i); in stm32_saes_update_load()
736 memcpy(data_out + i, block_out, data_size - i); in stm32_saes_update_load()
738 ctx->load_len += (data_size - i) * UINT8_BIT; in stm32_saes_update_load()
814 uint8_t *data_in, uint8_t *data_out, size_t data_size) in stm32_saes_update() argument
828 (round_down(data_size, AES_BLOCK_SIZE) != data_size)) { in stm32_saes_update()
842 (round_down(data_size, AES_BLOCK_SIZE) != data_size)) { in stm32_saes_update()
843 if (data_size < AES_BLOCK_SIZE * 2U) { in stm32_saes_update()
858 while (i < round_down(data_size, AES_BLOCK_SIZE)) { in stm32_saes_update()
886 if ((last_block) && (i < data_size)) { in stm32_saes_update()