![]() |
MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
The MCUXpresso SDK provides a peripheral driver for the SHA module in MCUXpresso SDK devices.
The driver provides blocking synchronous APIs. The SHA operations are complete (and results are made availabe for further usage) when a function returns. When called, these functions don't return until a SHA operation is complete. These functions use main CPU for simple polling loops to determine operation complete or error status and also for data movements. The driver functions are not re-entrant. These functions provide typical interface to upper layer or application software.
Clock to the SHA module has to be enabled before using the driver API.
SHA operations provided by this driver are not re-entrant. Thus, application software shall ensure the SHA module operation is not requested from different tasks or interrupt service routines while an operation is in progress.
Typical use case
Modules | |
Sha_algorithm_level_api | |
Files | |
file | fsl_sha.h |
Macros | |
#define | SHA_CTX_SIZE 20 |
SHA Context size. More... | |
Typedefs | |
typedef uint32_t | sha_ctx_t [SHA_CTX_SIZE] |
Storage type used to save hash context. More... | |
Enumerations | |
enum | sha_algo_t { kSHA_Sha1, kSHA_Sha256 } |
Supported cryptographic block cipher functions for HASH creation. More... | |
Driver version | |
#define | FSL_SHA_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
Defines LPC SHA driver version 2.0.0. More... | |
#define FSL_SHA_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
Change log:
#define SHA_CTX_SIZE 20 |
typedef uint32_t sha_ctx_t[SHA_CTX_SIZE] |
enum sha_algo_t |