ESP-IDF
tc_cmac_init()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
tc_cmac_init()
tc_cmac_init() function
Initializes a new CMAC computation
Syntax
Show:
Summary
Declaration
Definition
from
cmac_mode.h:163
int
tc_cmac_init
(
TCCmacState_t
s
)
;
Implemented in
cmac_mode.c:137
Arguments
Argument
Description
s
IN/OUT -- the state to initialize
Return value
returns TC_CRYPTO_SUCCESS (1) after having initialized the CMAC state returns TC_CRYPTO_FAIL (0) if: s == NULL
Related Functions
Found 4 other functions taking a
tc_cmac_struct
argument:
Function
Description
tc_cmac_erase()
Erases the CMAC state
tc_cmac_setup()
Configures the CMAC state to use the given AES key
tc_cmac_final()
Generates the tag from the CMAC state
tc_cmac_update()
Incrementally computes CMAC over the next data segment
Examples
References
from
examples
Code
Location
Referrer
int
tc_cmac_init
(
TCCmacState_t
s
)
cmac_mode.c:137
int
tc_cmac_init
(
TCCmacState_t
s
)
cmac_mode.c:137
int
tc_cmac_init
(
TCCmacState_t
s
)
;
cmac_mode.h:163
int
tc_cmac_init
(
TCCmacState_t
s
)
;
cmac_mode.h:163
tc_cmac_init
(
s
)
;
cmac_mode.c:120
tc_cmac_setup()
tc_cmac_init
(
s
)
;
cmac_mode.c:120
tc_cmac_setup()
Call Tree
from
examples
tc_cmac_init()
is called by 1 function and calls 1 function:
tc_cmac_setup()
All items filtered out
tc_cmac_init()
_set()
All items filtered out
Data Use
from
examples
tc_cmac_init()
reads 4 variables and writes 2 variables:
tc_cmac_struct::iv
tc_cmac_struct::leftover
MAX_CALLS
MAX_CALLS
All items filtered out
tc_cmac_init()
tc_cmac_struct::leftover_offset
tc_cmac_struct::countdown
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out