![]() |
MT7697 API Reference
LinkIt SDK v4
|
This section introduces the DES driver APIs including terms and acronyms, supported features, software architecture, details on how to use this driver, DES function groups, enums, structures and functions. More...
This section introduces the DES driver APIs including terms and acronyms, supported features, software architecture, details on how to use this driver, DES function groups, enums, structures and functions.
| Terms | Details |
|---|---|
| DES | The Data Encryption Standard. For more information, please refer to introduction to the DES in Wikipedia . |
| CBC | The Cipher Block Chaining. For more information, please refer to introduction to the CBC in Wikipedia . |
| ECB | The Electronic Codebook. For more information, please refer to introduction to the ECB in Wikipedia . |
MediaTek MT7687 has two encryption modes in DES, CBC mode and ECB mode. In the CBC mode, each block of encryption mode is XOR'ed with the previous cipher block before being encrypted, Each cipher text block depends on all plain text blocks processed up to that point. In ECB mode, the message is divided into blocks, and each block is encrypted separately.
Functions | |
| hal_des_status_t | hal_des_cbc_encrypt (hal_des_buffer_t *encrypted_text, hal_des_buffer_t *plain_text, hal_des_buffer_t *key, uint8_t init_vector[(8)]) |
| DES encryption in the CBC mode. More... | |
| hal_des_status_t | hal_des_cbc_decrypt (hal_des_buffer_t *plain_text, hal_des_buffer_t *encrypted_text, hal_des_buffer_t *key, uint8_t init_vector[(8)]) |
| DES decryption in the CBC mode. More... | |
| hal_des_status_t | hal_des_ecb_encrypt (hal_des_buffer_t *encrypted_text, hal_des_buffer_t *plain_text, hal_des_buffer_t *key) |
| DES encryption in the ECB mode. More... | |
| hal_des_status_t | hal_des_ecb_decrypt (hal_des_buffer_t *plain_text, hal_des_buffer_t *encrypted_text, hal_des_buffer_t *key) |
| DES decryption in the ECB mode. More... | |
Modules | |
| Define | |
| Enum | |
| Struct | |
| hal_des_status_t hal_des_cbc_decrypt | ( | hal_des_buffer_t * | plain_text, |
| hal_des_buffer_t * | encrypted_text, | ||
| hal_des_buffer_t * | key, | ||
| uint8_t | init_vector[(8)] | ||
| ) |
DES decryption in the CBC mode.
| [out] | plain_text | is the target plain text. |
| [in] | encrypted_text | is the source encrypted text. |
| [in] | key | is the DES key for encryption. |
| [in] | init_vector | is the DES initialization vector for encryption. |
| hal_des_status_t hal_des_cbc_encrypt | ( | hal_des_buffer_t * | encrypted_text, |
| hal_des_buffer_t * | plain_text, | ||
| hal_des_buffer_t * | key, | ||
| uint8_t | init_vector[(8)] | ||
| ) |
DES encryption in the CBC mode.
| [out] | encrypted_text | is the target encrypted text. |
| [in] | plain_text | is the source plain text. |
| [in] | key | is the DES key for encryption. |
| [in] | init_vector | is the DES initialization vector for encryption. |
| hal_des_status_t hal_des_ecb_decrypt | ( | hal_des_buffer_t * | plain_text, |
| hal_des_buffer_t * | encrypted_text, | ||
| hal_des_buffer_t * | key | ||
| ) |
DES decryption in the ECB mode.
| [out] | plain_text | is the target plain text. |
| [in] | encrypted_text | is the source encrypted text. |
| [in] | key | is the DES key for encryption. |
| hal_des_status_t hal_des_ecb_encrypt | ( | hal_des_buffer_t * | encrypted_text, |
| hal_des_buffer_t * | plain_text, | ||
| hal_des_buffer_t * | key | ||
| ) |
DES encryption in the ECB mode.
| [out] | encrypted_text | is the target encrypted text. |
| [in] | plain_text | is the source plain text. |
| [in] | key | is the DES key for encryption. |