72struct tc_hmac_state_struct {
74 struct tc_sha256_state_struct hash_state;
76 uint8_t key[2*TC_SHA256_BLOCK_SIZE];
78typedef struct tc_hmac_state_struct *TCHmacState_t;
93 unsigned int key_size);
115 unsigned int data_length);
133int tc_hmac_final(uint8_t *tag,
unsigned int taglen, TCHmacState_t ctx);
int tc_hmac_init(TCHmacState_t ctx)
HMAC init procedure Initializes ctx to begin the next HMAC operation.
Definition hmac.c:96
int tc_hmac_final(uint8_t *tag, unsigned int taglen, TCHmacState_t ctx)
HMAC final procedure Writes the HMAC tag into the tag buffer.
Definition hmac.c:125
int tc_hmac_update(TCHmacState_t ctx, const void *data, unsigned int data_length)
HMAC update procedure Mixes data_length bytes addressed by data into state.
Definition hmac.c:110
int tc_hmac_set_key(TCHmacState_t ctx, const uint8_t *key, unsigned int key_size)
HMAC set key procedure Configures ctx to use key.
Definition hmac.c:52
Interface to a SHA-256 implementation.