tc_cmac_setup() function
Configures the CMAC state to use the given AES key
Arguments
s
IN/OUT -- the state to set up
sched
IN -- AES key schedule
Return value
returns TC_CRYPTO_SUCCESS (1) after having configured the CMAC state returns TC_CRYPTO_FAIL (0) if: s == NULL or key == NULL
tc_cmac_setup() is called by 1 function and calls 5 functions:
![]()
tc_cmac_setup()
tc_cmac_setup() reads 4 variables and writes 1 variable:
![]()
tc_cmac_setup()