Functions | |
void | fsl_shw_hmco_init (fsl_shw_hmco_t *hmac_ctx, fsl_shw_hash_alg_t algorithm) |
void | fsl_shw_hmco_set_flags (fsl_shw_hmco_t *hmac_ctx, uint32_t flags) |
void | fsl_shw_hmco_clear_flags (fsl_shw_hmco_t *hmac_ctx, uint32_t flags) |
These operations should be the only access to the fsl_shw_hmco_t type/struct, as the internal members of that object are subject to change.
void fsl_shw_hmco_clear_flags | ( | fsl_shw_hmco_t * | hmac_ctx, | |
uint32_t | flags | |||
) |
Clear flags in an HMAC Context Object.
Turns off the flags specified in flags. Other flags are untouched.
hmac_ctx | The HMAC context to be operated on. | |
flags | The flags to be reset in the context. These can be ORed members of fsl_shw_hmac_ctx_flags_t. |
void fsl_shw_hmco_init | ( | fsl_shw_hmco_t * | hmac_ctx, | |
fsl_shw_hash_alg_t | algorithm | |||
) |
Initialize an HMAC Context Object.
This function must be called before performing any other operation with the Object. It sets the current message length and hash algorithm in the HMAC context object.
hmac_ctx | The HMAC context to operate upon. | |
algorithm | The hash algorithm to be used (FSL_HASH_ALG_MD5, FSL_HASH_ALG_SHA256, etc). |
void fsl_shw_hmco_set_flags | ( | fsl_shw_hmco_t * | hmac_ctx, | |
uint32_t | flags | |||
) |
Set flags in an HMAC Context Object.
Turns on the flags specified in flags. Other flags are untouched.
hmac_ctx | The HMAC context to be operated on. | |
flags | The flags to be set in the context. These can be ORed members of fsl_shw_hmac_ctx_flags_t. |
© Freescale Semiconductor, Inc., 2007.
All rights reserved. Freescale Confidential Proprietary NDA Required |
![]() |