tc_ccm_config() function
CCM configuration procedure
Arguments
sched
IN -- AES key schedule
nlen
-- nonce length in bytes
mlen
-- mac length in bytes (parameter t in SP-800 38C)
Return value
returns TC_CRYPTO_SUCCESS (1) returns TC_CRYPTO_FAIL (0) if: c == NULL or sched == NULL or nonce == NULL or mlen != {4, 6, 8, 10, 12, 16}
tc_ccm_config() writes 3 variables:
![]()
tc_ccm_config()