![]() |
ndn-lite
|
Functions | |
| void | gf_double (uint8_t *out, uint8_t *in) |
| int | tc_cmac_setup (TCCmacState_t s, const uint8_t *key, TCAesKeySched_t sched) |
| Configures the CMAC state to use the given AES key. More... | |
| int | tc_cmac_erase (TCCmacState_t s) |
| Erases the CMAC state. More... | |
| int | tc_cmac_init (TCCmacState_t s) |
| Initializes a new CMAC computation. More... | |
| int | tc_cmac_update (TCCmacState_t s, const uint8_t *data, size_t data_length) |
| Incrementally computes CMAC over the next data segment. More... | |
| int | tc_cmac_final (uint8_t *tag, TCCmacState_t s) |
| Generates the tag from the CMAC state. More... | |
Variables | |
| static const uint64_t | MAX_CALLS = ((uint64_t)1 << 48) |
| const unsigned char | gf_wrap = 0x87 |
| void gf_double | ( | uint8_t * | out, |
| uint8_t * | in | ||
| ) |
| int tc_cmac_erase | ( | TCCmacState_t | s | ) |
Erases the CMAC state.
| s | IN/OUT – the state to erase |
| int tc_cmac_final | ( | uint8_t * | tag, |
| TCCmacState_t | s | ||
| ) |
Generates the tag from the CMAC state.
| tag | OUT – the CMAC tag |
| s | IN – CMAC state |
| int tc_cmac_init | ( | TCCmacState_t | s | ) |
Initializes a new CMAC computation.
| s | IN/OUT – the state to initialize |
| int tc_cmac_setup | ( | TCCmacState_t | s, |
| const uint8_t * | key, | ||
| TCAesKeySched_t | sched | ||
| ) |
Configures the CMAC state to use the given AES key.
| s | IN/OUT – the state to set up |
| key | IN – the key to use |
| sched | IN – AES key schedule |
| int tc_cmac_update | ( | TCCmacState_t | s, |
| const uint8_t * | data, | ||
| size_t | dlen | ||
| ) |
Incrementally computes CMAC over the next data segment.
| s | IN/OUT – the CMAC state |
| data | IN – the next data segment to MAC |
| dlen | IN – the length of data in bytes |
| const unsigned char gf_wrap = 0x87 |
|
static |
1.8.15