UM1940
Function description
Parameters
Return values
HAL_CRYP_MspInit
Function name
Function description
Parameters
Return values
HAL_CRYP_MspDeInit
Function name
Function description
Parameters
Return values
HAL_CRYP_AESECB_Encrypt
Function name
Function description
Parameters
Return values
HAL_CRYP_AESECB_Decrypt
Function name
Function description
Parameters
(CRYP_HandleTypeDef * hcryp)
DeInitializes the CRYP peripheral.
hcryp: pointer to a CRYP_HandleTypeDef structure that
contains the configuration information for CRYP module
HAL: status
void HAL_CRYP_MspInit (CRYP_HandleTypeDef * hcryp)
Initializes the CRYP MSP.
hcryp: pointer to a CRYP_HandleTypeDef structure that
contains the configuration information for CRYP module
None:
void HAL_CRYP_MspDeInit (CRYP_HandleTypeDef * hcryp)
DeInitializes CRYP MSP.
hcryp: pointer to a CRYP_HandleTypeDef structure that
contains the configuration information for CRYP module
None:
HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt
(CRYP_HandleTypeDef * hcryp, uint8_t * pPlainData, uint16_t
Size, uint8_t * pCypherData, uint32_t Timeout)
Initializes the CRYP peripheral in AES ECB encryption mode then
encrypt pPlainData.
hcryp: pointer to a CRYP_HandleTypeDef structure that
contains the configuration information for CRYP module
pPlainData: Pointer to the plaintext buffer
Size: Length of the plaintext buffer, must be a multiple of 16.
pCypherData: Pointer to the cyphertext buffer
Timeout: Specify Timeout value
HAL: status
HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt
(CRYP_HandleTypeDef * hcryp, uint8_t * pCypherData,
uint16_t Size, uint8_t * pPlainData, uint32_t Timeout)
Initializes the CRYP peripheral in AES ECB decryption mode then
decrypted pCypherData.
hcryp: pointer to a CRYP_HandleTypeDef structure that
contains the configuration information for CRYP module
pCypherData: Pointer to the cyphertext buffer
DocID028236 Rev 2
HAL CRYP Generic Driver
141/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers