STM32F4xx_HAL_Driver  1.8.3
Encrypt Decrypt functions

processing functions. More...

+ Collaboration diagram for Encrypt Decrypt functions:

Functions

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...
 

Detailed Description

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

Function Documentation

◆ 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
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
InputPointer to the input buffer (ciphertext )
SizeLength of the plaintext buffer in word.
OutputPointer to the output buffer(plaintext)
TimeoutSpecify Timeout value
Return values
HALstatus

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
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
InputPointer to the input buffer (ciphertext )
SizeLength of the plaintext buffer in word
OutputPointer to the output buffer(plaintext)
Return values
HALstatus

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
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
InputPointer to the input buffer (ciphertext )
SizeLength of the plaintext buffer in word.
OutputPointer to the output buffer(plaintext)
Return values
HALstatus

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
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
InputPointer to the input buffer (plaintext)
SizeLength of the plaintext buffer in word.
OutputPointer to the output buffer(ciphertext)
TimeoutSpecify Timeout value
Return values
HALstatus

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
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
InputPointer to the input buffer (plaintext)
SizeLength of the plaintext buffer in word.
OutputPointer to the output buffer(ciphertext)
Return values
HALstatus

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
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
InputPointer to the input buffer (plaintext)
SizeLength of the plaintext buffer in word
OutputPointer to the output buffer(ciphertext)
Return values
HALstatus

Definition at line 1292 of file stm32f4xx_hal_cryp.c.