processing functions.
More...
|
HAL_StatusTypeDef | HAL_CRYP_Encrypt (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output, uint32_t Timeout) |
| Encryption mode. More...
|
|
HAL_StatusTypeDef | HAL_CRYP_Decrypt (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output, uint32_t Timeout) |
| Decryption mode. More...
|
|
HAL_StatusTypeDef | HAL_CRYP_Encrypt_IT (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
| Encryption in interrupt mode. More...
|
|
HAL_StatusTypeDef | HAL_CRYP_Decrypt_IT (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
| Decryption in itnterrupt mode. More...
|
|
HAL_StatusTypeDef | HAL_CRYP_Encrypt_DMA (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
| Encryption in DMA mode. More...
|
|
HAL_StatusTypeDef | HAL_CRYP_Decrypt_DMA (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
| Decryption in DMA mode. More...
|
|
processing functions.
==============================================================================
##### Encrypt Decrypt functions #####
==============================================================================
[..] This section provides API allowing to Encrypt/Decrypt Data following
Standard DES/TDES or AES, and Algorithm configured by the user:
(+) Standard DES/TDES only supported by CRYP1 IP, below list of Algorithm supported :
- Electronic Code Book(ECB)
- Cipher Block Chaining (CBC)
(+) Standard AES supported by CRYP1 IP & TinyAES, list of Algorithm supported:
- Electronic Code Book(ECB)
- Cipher Block Chaining (CBC)
- Counter mode (CTR)
- Cipher Block Chaining (CBC)
- Counter mode (CTR)
- Galois/counter mode (GCM)
- Counter with Cipher Block Chaining-Message(CCM)
[..] Three processing functions are available:
(+) Polling mode : HAL_CRYP_Encrypt & HAL_CRYP_Decrypt
(+) Interrupt mode : HAL_CRYP_Encrypt_IT & HAL_CRYP_Decrypt_IT
(+) DMA mode : HAL_CRYP_Encrypt_DMA & HAL_CRYP_Decrypt_DMA
◆ HAL_CRYP_Decrypt()
HAL_StatusTypeDef HAL_CRYP_Decrypt |
( |
CRYP_HandleTypeDef * |
hcryp, |
|
|
uint32_t * |
Input, |
|
|
uint16_t |
Size, |
|
|
uint32_t * |
Output, |
|
|
uint32_t |
Timeout |
|
) |
| |
Decryption mode.
- Parameters
-
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
Input | Pointer to the input buffer (ciphertext ) |
Size | Length of the plaintext buffer in word. |
Output | Pointer to the output buffer(plaintext) |
Timeout | Specify Timeout value |
- Return values
-
Definition at line 1119 of file stm32f4xx_hal_cryp.c.
◆ HAL_CRYP_Decrypt_DMA()
HAL_StatusTypeDef HAL_CRYP_Decrypt_DMA |
( |
CRYP_HandleTypeDef * |
hcryp, |
|
|
uint32_t * |
Input, |
|
|
uint16_t |
Size, |
|
|
uint32_t * |
Output |
|
) |
| |
Decryption in DMA mode.
- Parameters
-
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
Input | Pointer to the input buffer (ciphertext ) |
Size | Length of the plaintext buffer in word |
Output | Pointer to the output buffer(plaintext) |
- Return values
-
Definition at line 1854 of file stm32f4xx_hal_cryp.c.
◆ HAL_CRYP_Decrypt_IT()
HAL_StatusTypeDef HAL_CRYP_Decrypt_IT |
( |
CRYP_HandleTypeDef * |
hcryp, |
|
|
uint32_t * |
Input, |
|
|
uint16_t |
Size, |
|
|
uint32_t * |
Output |
|
) |
| |
Decryption in itnterrupt mode.
- Parameters
-
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
Input | Pointer to the input buffer (ciphertext ) |
Size | Length of the plaintext buffer in word. |
Output | Pointer to the output buffer(plaintext) |
- Return values
-
Definition at line 1455 of file stm32f4xx_hal_cryp.c.
◆ HAL_CRYP_Encrypt()
HAL_StatusTypeDef HAL_CRYP_Encrypt |
( |
CRYP_HandleTypeDef * |
hcryp, |
|
|
uint32_t * |
Input, |
|
|
uint16_t |
Size, |
|
|
uint32_t * |
Output, |
|
|
uint32_t |
Timeout |
|
) |
| |
Encryption mode.
- Parameters
-
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
Input | Pointer to the input buffer (plaintext) |
Size | Length of the plaintext buffer in word. |
Output | Pointer to the output buffer(ciphertext) |
Timeout | Specify Timeout value |
- Return values
-
Definition at line 946 of file stm32f4xx_hal_cryp.c.
◆ HAL_CRYP_Encrypt_DMA()
HAL_StatusTypeDef HAL_CRYP_Encrypt_DMA |
( |
CRYP_HandleTypeDef * |
hcryp, |
|
|
uint32_t * |
Input, |
|
|
uint16_t |
Size, |
|
|
uint32_t * |
Output |
|
) |
| |
Encryption in DMA mode.
- Parameters
-
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
Input | Pointer to the input buffer (plaintext) |
Size | Length of the plaintext buffer in word. |
Output | Pointer to the output buffer(ciphertext) |
- Return values
-
Definition at line 1622 of file stm32f4xx_hal_cryp.c.
◆ HAL_CRYP_Encrypt_IT()
HAL_StatusTypeDef HAL_CRYP_Encrypt_IT |
( |
CRYP_HandleTypeDef * |
hcryp, |
|
|
uint32_t * |
Input, |
|
|
uint16_t |
Size, |
|
|
uint32_t * |
Output |
|
) |
| |
Encryption in interrupt mode.
- Parameters
-
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
Input | Pointer to the input buffer (plaintext) |
Size | Length of the plaintext buffer in word |
Output | Pointer to the output buffer(ciphertext) |
- Return values
-
Definition at line 1292 of file stm32f4xx_hal_cryp.c.