Header file containing functions prototypes of AES HAL library. More...
Go to the source code of this file.
Classes | |
struct | _aes_init |
AES Init Structure definition. More... | |
struct | _aes_handle |
AES handle Structure definition. More... | |
struct | _hal_aes_callback |
HAL AES Callback function definition. More... | |
Typedefs | |
typedef struct _aes_init | aes_init_t |
AES Init Structure definition. More... | |
typedef struct _aes_handle | aes_handle_t |
AES handle Structure definition. More... | |
typedef struct _hal_aes_callback | hal_aes_callback_t |
HAL AES Callback function definition. More... | |
Enumerations | |
enum | hal_aes_state_t { HAL_AES_STATE_RESET = 0x00, HAL_AES_STATE_READY = 0x01, HAL_AES_STATE_BUSY = 0x02 } |
HAL AES State Enumerations definition. More... | |
Functions | |
hal_status_t | hal_aes_init (aes_handle_t *p_aes) |
Initialize the AES according to the specified parameters in the aes_init_t and initialize the associated handle. More... | |
hal_status_t | hal_aes_deinit (aes_handle_t *p_aes) |
De-initialize the AES peripheral. More... | |
void | hal_aes_msp_init (aes_handle_t *p_aes) |
Initialize the AES MSP. More... | |
void | hal_aes_msp_deinit (aes_handle_t *p_aes) |
De-initialize the AES MSP. More... | |
hal_status_t | hal_aes_ecb_encrypt (aes_handle_t *p_aes, uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data, uint32_t timeout) |
Encrypted an amount of data in blocking mode in ECB mode. More... | |
hal_status_t | hal_aes_ecb_decrypt (aes_handle_t *p_aes, uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data, uint32_t timeout) |
Decrypted an amount of data in blocking mode in ECB mode. More... | |
hal_status_t | hal_aes_cbc_encrypt (aes_handle_t *p_aes, uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data, uint32_t timeout) |
Encrypted an amount of data in blocking mode in CBC mode. More... | |
hal_status_t | hal_aes_cbc_decrypt (aes_handle_t *p_aes, uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data, uint32_t timeout) |
Decrypted an amount of data in blocking mode in CBC mode. More... | |
hal_status_t | hal_aes_ecb_encrypt_it (aes_handle_t *p_aes, uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data) |
Encrypted an amount of data in non-blocking mode with Interrupt in ECB mode. More... | |
hal_status_t | hal_aes_ecb_decrypt_it (aes_handle_t *p_aes, uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data) |
Decrypted an amount of data in non-blocking mode with Interrupt in ECB mode. More... | |
hal_status_t | hal_aes_cbc_encrypt_it (aes_handle_t *p_aes, uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data) |
Encrypted an amount of data in non-blocking mode with Interrupt in CBC mode. More... | |
hal_status_t | hal_aes_cbc_decrypt_it (aes_handle_t *p_aes, uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data) |
Decrypted an amount of data in non-blocking mode with Interrupt in CBC mode. More... | |
hal_status_t | hal_aes_ecb_encrypt_dma (aes_handle_t *p_aes, uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data) |
Encrypted an amount of data in non-blocking mode with DMA in ECB mode. More... | |
hal_status_t | hal_aes_ecb_decrypt_dma (aes_handle_t *p_aes, uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data) |
Decrypted an amount of data in non-blocking mode with DMA in ECB mode. More... | |
hal_status_t | hal_aes_cbc_encrypt_dma (aes_handle_t *p_aes, uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data) |
Encrypted an amount of data in non-blocking mode with DMA in CBC mode. More... | |
hal_status_t | hal_aes_cbc_decrypt_dma (aes_handle_t *p_aes, uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data) |
Decrypted an amount of data in non-blocking mode with DMA in CBC mode. More... | |
void | hal_aes_irq_handler (aes_handle_t *p_aes) |
Handle AES interrupt request. More... | |
void | hal_aes_done_callback (aes_handle_t *p_aes) |
Encrypt or decrypt Done callback. More... | |
void | hal_aes_error_callback (aes_handle_t *p_aes) |
AES error callback. More... | |
hal_aes_state_t | hal_aes_get_state (aes_handle_t *p_aes) |
Return the AES handle state. More... | |
uint32_t | hal_aes_get_error (aes_handle_t *p_aes) |
Return the AES error code. More... | |
Header file containing functions prototypes of AES HAL library.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file hal_aes.h.