Home
last modified time | relevance | path

Searched refs:CAU_CTL (Results 1 – 3 of 3) sorted by relevance

/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32l23x/standard_peripheral/source/
Dgd32l23x_cau.c209 CAU_CTL |= CAU_CTL_CAUEN; in cau_enable()
221 CAU_CTL &= ~CAU_CTL_CAUEN; in cau_disable()
286 CAU_CTL &= ~CAU_CTL_ALGM; in cau_init()
287 CAU_CTL |= algo_mode; in cau_init()
290 CAU_CTL &= ~CAU_CTL_DATAM; in cau_init()
291 CAU_CTL |= swapping; in cau_init()
294 CAU_CTL &= ~CAU_CTL_CAUDIR; in cau_init()
295 CAU_CTL |= alg_dir; in cau_init()
310 CAU_CTL &= ~CAU_CTL_KEYM; in cau_aes_keysize_config()
311 CAU_CTL |= key_size; in cau_aes_keysize_config()
[all …]
Dgd32l23x_cau_aes.c805 if((CAU_CTL & CAU_CTL_GCM_CCMPH) == CAU_ENCRYPT_DECRYPT_PHASE) { in cau_fill_data()
806 … if((CAU_CTL & (CAU_CTL_ALGM | CAU_CTL_CAUDIR)) == (CAU_MODE_AES_GCM | CAU_ENCRYPT)) { in cau_fill_data()
807 CAU_CTL |= CAU_PADDING_BYTES(i + BLOCK_DATA_SIZE - in_length); in cau_fill_data()
808 … } else if((CAU_CTL & (CAU_CTL_ALGM | CAU_CTL_CAUDIR)) == (CAU_MODE_AES_CCM | CAU_DECRYPT)) { in cau_fill_data()
809 CAU_CTL |= CAU_PADDING_BYTES(i + BLOCK_DATA_SIZE - in_length); in cau_fill_data()
874 if((CAU_CTL & (CAU_CTL_ALGM | CAU_CTL_CAUDIR)) == (CAU_MODE_AES_GCM | CAU_ENCRYPT)) { in cau_aes_calculate()
875 CAU_CTL |= CAU_PADDING_BYTES(i + BLOCK_DATA_SIZE - in_length); in cau_aes_calculate()
876 … } else if((CAU_CTL & (CAU_CTL_ALGM | CAU_CTL_CAUDIR)) == (CAU_MODE_AES_CCM | CAU_DECRYPT)) { in cau_aes_calculate()
877 CAU_CTL |= CAU_PADDING_BYTES(i + BLOCK_DATA_SIZE - in_length); in cau_aes_calculate()
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32l23x/standard_peripheral/include/
Dgd32l23x_cau.h45 #define CAU_CTL REG32(CAU + 0x00000000U) /*!< control register */ macro