![]() |
ndn-lite
|
Functions | |
static void | rekey (uint8_t *key, const uint8_t *new_key, unsigned int key_size) |
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. More... | |
int | tc_hmac_init (TCHmacState_t ctx) |
HMAC init procedure Initializes ctx to begin the next HMAC operation. More... | |
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. More... | |
int | tc_hmac_final (uint8_t *tag, unsigned int taglen, TCHmacState_t ctx) |
HMAC final procedure Writes the HMAC tag into the tag buffer. More... | |
|
static |
int tc_hmac_final | ( | uint8_t * | tag, |
unsigned int | taglen, | ||
TCHmacState_t | ctx | ||
) |
HMAC final procedure Writes the HMAC tag into the tag buffer.
tag | IN/OUT – buffer to receive computed HMAC tag |
taglen | IN – size of tag in bytes |
ctx | IN/OUT – the HMAC state for computing tag |
int tc_hmac_init | ( | TCHmacState_t | ctx | ) |
HMAC init procedure Initializes ctx to begin the next HMAC operation.
ctx | IN/OUT – struct tc_hmac_state_struct buffer to init |
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.
ctx | IN/OUT – the struct tc_hmac_state_struct to initial |
key | IN – the HMAC key to configure |
key_size | IN – the HMAC key size |
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.
ctx | IN/OUT – state of HMAC computation so far |
data | IN – data to incorporate into state |
data_length | IN – size of data in bytes |