diff options
author | thead_admin <occ_thead@service.alibaba.com> | 2023-08-07 11:22:40 +0800 |
---|---|---|
committer | Han Gao <rabenda.cn@gmail.com> | 2023-08-19 02:17:24 +0800 |
commit | 329e2581fe5bd0afdb59c1b1d715124bc82262e2 (patch) | |
tree | 981839f10f0e2dba43e7a6725ad4d0b6e65ed10c /lib/sec_library/include/aes.h | |
parent | 8337ee75f4872682ce9fe266274c8c916938ecc7 (diff) |
Linux_SDK_V1.2.1
Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
Diffstat (limited to 'lib/sec_library/include/aes.h')
-rw-r--r--[-rwxr-xr-x] | lib/sec_library/include/aes.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sec_library/include/aes.h b/lib/sec_library/include/aes.h index 93c809d3..069767f3 100755..100644 --- a/lib/sec_library/include/aes.h +++ b/lib/sec_library/include/aes.h @@ -40,20 +40,20 @@ extern "C" { #define AES_DMA_DISABLE (0) /** -\brief DES data transfer mode config +\brief AES data transfer mode config */ typedef enum { - AES_SLAVE_MODE = 0U, ///< slave mode - AES_DMA_MODE, ///< dma mode + AES_SLAVE_MODE = 0U, /*slave mode*/ + AES_DMA_MODE, /*dma mode*/ } csi_aes_trans_mode_t; /** \brief AES Keylen type */ typedef enum { - AES_KEY_LEN_BITS_128 = 0, ///< 128 Data bits - AES_KEY_LEN_BITS_192, ///< 192 Data bits - AES_KEY_LEN_BITS_256 ///< 256 Data bits + AES_KEY_LEN_BITS_128 = 0, /*128 Data bits*/ + AES_KEY_LEN_BITS_192, /*192 Data bits*/ + AES_KEY_LEN_BITS_256 /*256 Data bits*/ } csi_aes_key_bits_t; /** @@ -73,8 +73,8 @@ typedef enum{ \brief AES state */ typedef struct { - uint32_t busy : 1; ///< Calculate busy flag - uint32_t error : 1; ///< Calculate error flag + uint32_t busy : 1; /*Calculate busy flag*/ + uint32_t error : 1; /*Calculate error flag*/ } csi_aes_state_t; /** @@ -82,7 +82,7 @@ typedef struct { */ typedef struct { uint32_t key_len_byte; - uint8_t key[32]; ///< Data block being processed + uint8_t key[32]; /*Data block being processed*/ uint32_t sca; uint32_t is_kdf; uint32_t is_dma; @@ -350,7 +350,7 @@ void csi_aes_disable_pm(csi_aes_t *aes); \param[in] mode \ref csi_des_trans_mode_t \return None */ -void csi_aes_trans_config(csi_aes_t *aes, csi_aes_trans_mode_t mode); +csi_error_t csi_aes_trans_config(csi_aes_t *aes, csi_aes_trans_mode_t mode); #ifdef __cplusplus } |