![]() |
MT7687 API Reference
LinkIt SDK v4
|
This section introduces the AES driver APIs including terms and acronyms, supported features, software architecture, details on how to use this driver, AES function groups, enums, structures and functions. More...
This section introduces the AES driver APIs including terms and acronyms, supported features, software architecture, details on how to use this driver, AES function groups, enums, structures and functions.
| Terms | Details |
|---|---|
| AES | The Advanced Encryption Standard. For more information, please refer to introduction to the AES in Wikipedia. |
| CBC | The Cipher Block Chaining(CBC), each block of plain text is XOR'ed with the previous cipher block before being encrypted. This way, each cipher text block depends on all plain text blocks processed up to that point. |
| ECB | Electronic Codebook (ECB) mode. The message is divided into blocks, and each block is encrypted separately. |
Functions | |
| hal_aes_status_t | hal_aes_cbc_encrypt (hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *plain_text, hal_aes_buffer_t *key, uint8_t init_vector[HAL_AES_CBC_IV_LENGTH]) |
| This function provides AES encryption in CBC mode. More... | |
| hal_aes_status_t | hal_aes_cbc_decrypt (hal_aes_buffer_t *plain_text, hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *key, uint8_t init_vector[HAL_AES_CBC_IV_LENGTH]) |
| This function provides AES decryption in CBC mode. More... | |
| hal_aes_status_t | hal_aes_ecb_encrypt (hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *plain_text, hal_aes_buffer_t *key) |
| This function provides AES encryption in EBC mode. More... | |
| hal_aes_status_t | hal_aes_ecb_decrypt (hal_aes_buffer_t *plain_text, hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *key) |
| This function provides AES decryption in EBC mode. More... | |
Modules | |
| Define | |
| Enum | |
| Struct | |
| hal_aes_status_t hal_aes_cbc_decrypt | ( | hal_aes_buffer_t * | plain_text, |
| hal_aes_buffer_t * | encrypted_text, | ||
| hal_aes_buffer_t * | key, | ||
| uint8_t | init_vector[HAL_AES_CBC_IV_LENGTH] | ||
| ) |
This function provides AES decryption in CBC mode.
| [out] | plain_text | is the target plain text. |
| [in] | encrypted_text | is the source encrypted text. |
| [in] | key | is the AES encryption key. |
| [in] | init_vector | is the AES initialization vector for encryption. |
| hal_aes_status_t hal_aes_cbc_encrypt | ( | hal_aes_buffer_t * | encrypted_text, |
| hal_aes_buffer_t * | plain_text, | ||
| hal_aes_buffer_t * | key, | ||
| uint8_t | init_vector[HAL_AES_CBC_IV_LENGTH] | ||
| ) |
This function provides AES encryption in CBC mode.
| [out] | encrypted_text | is the target encrypted text. |
| [in] | plain_text | is the source plain text. |
| [in] | key | is the AES encryption key. |
| [in] | init_vector | is the AES initialzation vector for encryption. |
| hal_aes_status_t hal_aes_ecb_decrypt | ( | hal_aes_buffer_t * | plain_text, |
| hal_aes_buffer_t * | encrypted_text, | ||
| hal_aes_buffer_t * | key | ||
| ) |
This function provides AES decryption in EBC mode.
| [out] | plain_text | is the target plain text. |
| [in] | encrypted_text | is the source encrypted text. |
| [in] | key | is the AES encryption key. |
| hal_aes_status_t hal_aes_ecb_encrypt | ( | hal_aes_buffer_t * | encrypted_text, |
| hal_aes_buffer_t * | plain_text, | ||
| hal_aes_buffer_t * | key | ||
| ) |
This function provides AES encryption in EBC mode.
| [out] | encrypted_text | is the target encrypted text. |
| [in] | plain_text | is the source plain text. |
| [in] | key | is the AES encryption key. |