Go to the source code of this file.
Data Structures | |
struct | Crypto_ShaParams |
Parameters passed during Crypto_shaOpen() More... | |
struct | Crypto_ShaFxns |
Driver implementation callbacks. More... | |
struct | Crypto_ShaContext |
CRYPTO SHA driver context. More... | |
struct | Crypto_ShaConfig |
CRYPTO SHA global configuration array. More... | |
Macros | |
SHA authentication mode | |
#define | CRYPTO_SHA_AUTHMODE_NULL (0U) |
No individual Authentication. More... | |
#define | CRYPTO_SHA_AUTHMODE_SHA1 (1U) |
SHA1 mode. More... | |
#define | CRYPTO_SHA_AUTHMODE_SHA2_224 (2U) |
224-bit SHA2 mode More... | |
#define | CRYPTO_SHA_AUTHMODE_SHA2_256 (3U) |
256-bit SHA2 mode More... | |
#define | CRYPTO_SHA_AUTHMODE_SHA2_384 (4U) |
384-bit SHA2 mode. Note: This mode is used at Data Mode only for SA2_UL More... | |
#define | CRYPTO_SHA_AUTHMODE_SHA2_512 (5U) |
512-bit SHA2 mode. Note: This mode is used at Data Mode only for SA2_UL More... | |
#define | CRYPTO_SHA_AUTHMODE_HMAC_SHA1 (6U) |
HMAC with SHA1 mode. More... | |
#define | CRYPTO_SHA_AUTHMODE_HMAC_SHA2_224 (7U) |
HMAC with 224-bit SHA2 mode. More... | |
#define | CRYPTO_SHA_AUTHMODE_HMAC_SHA2_256 (8U) |
HMAC with 256-bit SHA2 mode. More... | |
#define | CRYPTO_SHA_AUTHMODE_HMAC_SHA2_384 (9U) |
HMAC with 224-bit SHA mode. Note: This mode is used at Data Mode only for SA2_UL. More... | |
#define | CRYPTO_SHA_AUTHMODE_HMAC_SHA2_512 (10U) |
HMAC with 256-bit SHA mode. Note: This mode is used at Data Mode only for SA2_UL. More... | |
Typedefs | |
typedef void * | Crypto_ShaHandle |
Handle to the Crypto SHA driver returned by Crypto_shaOpen() More... | |
typedef int32_t(* | Crypto_ShaOpenFxn) (Crypto_ShaContext *ctx, const Crypto_ShaParams *params) |
callback functions declarations More... | |
typedef int32_t(* | Crypto_ShaCloseFxn) (Crypto_ShaContext *ctx) |
typedef int32_t(* | Crypto_ShaStartFxn) (Crypto_ShaContext *ctx) |
typedef int32_t(* | Crypto_ShaUpdateFxn) (Crypto_ShaContext *ctx, const uint8_t *input, uint32_t ilen) |
typedef int32_t(* | Crypto_ShaFinishFxn) (Crypto_ShaContext *ctx, uint8_t *output) |
typedef int32_t(* | Crypto_ShaSingleShotFxn) (Crypto_ShaContext *ctx, const uint8_t *input, uint32_t ilen, uint8_t *output) |
Functions | |
void | Crypto_ShaParams_init (Crypto_ShaParams *params) |
Set default parameters in the Crypto_ShaParams structure. More... | |
Crypto_ShaHandle | Crypto_shaOpen (Crypto_ShaContext *ctx, const Crypto_ShaParams *params) |
This function gives the configuration based on type. More... | |
int32_t | Crypto_shaClose (Crypto_ShaHandle handle) |
This function clears a Secure Hash Algorithm (SHA ) context. More... | |
int32_t | Crypto_shaStarts (Crypto_ShaHandle handle) |
This function starts a Secure Hash Algorithm (SHA ) checksum calculation. More... | |
int32_t | Crypto_shaUpdate (Crypto_ShaHandle handle, const uint8_t *input, uint32_t ilen) |
This function feeds an input buffer into an ongoing Secure Hash Algorithm (SHA ) checksum calculation. More... | |
int32_t | Crypto_shaFinish (Crypto_ShaHandle handle, uint8_t *output) |
This function finishes the Secure Hash Algorithm (SHA ) operation, and writes the result to the output buffer. More... | |
int32_t | Crypto_shaSingleShot (Crypto_ShaHandle handle, const uint8_t *input, uint32_t ilen, uint8_t *output) |
This function calculates the Secure Hash Algorithm (SHA) checksum of a buffer. More... | |
Variables | |
Crypto_ShaConfig | gCryptoShaConfig [CRYPTO_NUM_TYPE] |
Externally defined SHA driver configuration array. More... | |