HMAC Encrypt/Decrypt functions.
More...
|
| hal_status_t | hal_hmac_sha256_digest (hmac_handle_t *p_hmac, uint32_t *p_message, uint32_t number, uint32_t *p_digest, uint32_t timeout) |
| | xxx in blocking mode in SHA mode. More...
|
| |
| hal_status_t | hal_hmac_sha256_digest_poll (hmac_handle_t *p_hmac, uint32_t *p_message, uint32_t number, uint32_t *p_digest, uint32_t timeout) |
| | xxx in polling mode in HMAC/SHA mode. More...
|
| |
| hal_status_t | hal_hmac_sha256_digest_it (hmac_handle_t *p_hmac, uint32_t *p_message, uint32_t number, uint32_t *p_digest, uint32_t timeout) |
| | xxx in interrupt mode in HMAC/SHA mode. More...
|
| |
| hal_status_t | hal_hmac_sha256_digest_dma (hmac_handle_t *p_hmac, uint32_t *p_message, uint32_t number, uint32_t *p_digest, uint32_t timeout) |
| | xxx in DMA mode in HMAC/SHA mode. More...
|
| |
HMAC Encrypt/Decrypt functions.
===============================================================================
##### IO operation functions #####
===============================================================================
This subsection provides a set of functions allowing to manage the HMAC encrypt or decrypt.
(#) There are two mode of transfer:
(++) Blocking mode: The communication is performed in polling mode.
The HAL status of all data processing is returned by the same function
after finishing transfer.
(++) Non-Blocking mode: The communication is performed using Interrupts
or DMA, These API's return the HAL status.
The end of the data processing will be indicated through the
dedicated HMAC IRQ when using Interrupt mode or the DMA IRQ when
using DMA mode.
The hal_hmac_done_callback() user callbacks will be executed respectively
at the end of the encrypt or decrypt process
The hal_hmac_error_callback() user callback will be executed when a error is detected
(#) Blocking mode API's are :
(++) hal_sha256_digest()
(++) hal_hmac_sha256_digest_start()
(++) hal_hmac_sha256_digest_continue()
(++) hal_hmac_sha256_digest_finish()
(#) Non-Blocking mode API's with Interrupt are :
(++) hal_sha256_digest_it()
(++) hal_hmac_sha256_digest_start_it()
(++) hal_hmac_sha256_digest_continue_it()
(++) hal_hmac_sha256_digest_finish_it()
(#) Non-Blocking mode API's with DMA are :
(++) hal_sha256_digest_dma()
(++) hal_hmac_sha256_digest_start_dma()
(++) hal_hmac_sha256_digest_continue_dma()
(++) hal_hmac_sha256_digest_finish_dma()
(#) A set of encrypt or decrypt Callbacks are provided in Non_Blocking mode:
(++) hal_hmac_done_callback()
(++) hal_hmac_error_callback()
(#) Non-Blocking mode transfers could be aborted using Abort API's :
(++) hal_hmac_abort()
(++) hal_hmac_abort_it()
(#) For Abort services based on interrupts (HAL_HMAC_Abortxxx_IT), Abort Complete Callback is provided:
(++) hal_hmac_abort_cplt_callback()
◆ hal_hmac_sha256_digest()
| hal_status_t hal_hmac_sha256_digest |
( |
hmac_handle_t * |
p_hmac, |
|
|
uint32_t * |
p_message, |
|
|
uint32_t |
number, |
|
|
uint32_t * |
p_digest, |
|
|
uint32_t |
timeout |
|
) |
| |
xxx in blocking mode in SHA mode.
- Parameters
-
| [in] | p_hmac | Pointer to a HMAC handle which contains the configuration information for the specified HMAC module. |
| [in] | p_message | Pointer to message buffer |
| [in] | number | Amount of data |
| [out] | p_digest | Pointer to digest buffer |
| [in] | timeout | Timeout duration |
- Return values
-
◆ hal_hmac_sha256_digest_dma()
| hal_status_t hal_hmac_sha256_digest_dma |
( |
hmac_handle_t * |
p_hmac, |
|
|
uint32_t * |
p_message, |
|
|
uint32_t |
number, |
|
|
uint32_t * |
p_digest, |
|
|
uint32_t |
timeout |
|
) |
| |
xxx in DMA mode in HMAC/SHA mode.
- Parameters
-
| [in] | p_hmac | Pointer to a HMAC handle which contains the configuration information for the specified HMAC module. |
| [in] | p_message | Pointer to message buffer |
| [in] | number | Amount of data |
| [out] | p_digest | Pointer to digest buffer |
| [in] | timeout | Timeout duration |
- Return values
-
◆ hal_hmac_sha256_digest_it()
| hal_status_t hal_hmac_sha256_digest_it |
( |
hmac_handle_t * |
p_hmac, |
|
|
uint32_t * |
p_message, |
|
|
uint32_t |
number, |
|
|
uint32_t * |
p_digest, |
|
|
uint32_t |
timeout |
|
) |
| |
xxx in interrupt mode in HMAC/SHA mode.
- Parameters
-
| [in] | p_hmac | Pointer to a HMAC handle which contains the configuration information for the specified HMAC module. |
| [in] | p_message | Pointer to message buffer |
| [in] | number | Amount of data |
| [out] | p_digest | Pointer to digest buffer |
| [in] | timeout | Timeout duration |
- Return values
-
◆ hal_hmac_sha256_digest_poll()
| hal_status_t hal_hmac_sha256_digest_poll |
( |
hmac_handle_t * |
p_hmac, |
|
|
uint32_t * |
p_message, |
|
|
uint32_t |
number, |
|
|
uint32_t * |
p_digest, |
|
|
uint32_t |
timeout |
|
) |
| |
xxx in polling mode in HMAC/SHA mode.
- Parameters
-
| [in] | p_hmac | Pointer to a HMAC handle which contains the configuration information for the specified HMAC module. |
| [in] | p_message | Pointer to message buffer |
| [in] | number | Amount of data |
| [out] | p_digest | Pointer to digest buffer |
| [in] | timeout | Timeout duration |
- Return values
-