ESP-IDF
cmac_cb
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (1/5)...
Files
loading (3/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
cmac_cb
cmac_cb variable
Syntax
Show:
Summary
Declaration
from
smp_cmac.c:42
tCMAC_CB
cmac_cb
;
Examples
References
from
examples
Code
Location
Referrer
tCMAC_CB
cmac_cb
;
smp_cmac.c:42
if
(
cmac_cb
.
text
!=
NULL
)
{
smp_cmac.c:118
cmac_aes_cleanup()
osi_free
(
cmac_cb
.
text
)
;
smp_cmac.c:119
cmac_aes_cleanup()
memset
(
&
cmac_cb
,
0
,
sizeof
(
tCMAC_CB
)
)
;
smp_cmac.c:121
cmac_aes_cleanup()
while
(
i
<=
cmac_cb
.
round
)
{
smp_cmac.c:142
cmac_aes_k_calculate()
smp_xor_128
(
&
cmac_cb
.
text
[
(
cmac_cb
.
round
-
i
)
*
BT_OCTET16_LEN
]
,
x
)
;
/* Mi' := Mi (+) X */
smp_cmac.c:143
cmac_aes_k_calculate()
if
(
!
SMP_Encrypt
(
key
,
BT_OCTET16_LEN
,
&
cmac_cb
.
text
[
(
cmac_cb
.
round
-
i
)
*
BT_OCTET16_LEN
]
,
BT_OCTET16_LEN
,
&
output
)
)
{
smp_cmac.c:145
cmac_aes_k_calculate()
flag
=
(
(
cmac_cb
.
len
%
BT_OCTET16_LEN
)
==
0
&&
cmac_cb
.
len
!=
0
)
?
TRUE
:
FALSE
;
smp_cmac.c:187
cmac_prepare_last_block()
SMP_TRACE_DEBUG
(
"flag = %d round = %d"
,
flag
,
cmac_cb
.
round
)
;
smp_cmac.c:189
cmac_prepare_last_block()
smp_xor_128
(
&
cmac_cb
.
text
[
0
]
,
k1
)
;
smp_cmac.c:193
cmac_prepare_last_block()
padding
(
&
cmac_cb
.
text
[
0
]
,
(
UINT8
)
(
cmac_cb
.
len
%
16
)
)
;
smp_cmac.c:195
cmac_prepare_last_block()
smp_xor_128
(
&
cmac_cb
.
text
[
0
]
,
k2
)
;
smp_cmac.c:197
cmac_prepare_last_block()
if
(
(
cmac_cb
.
text
=
(
UINT8
*
)
osi_malloc
(
len
)
)
!=
NULL
)
{
smp_cmac.c:296
aes_cipher_msg_auth_code()
cmac_cb
.
round
=
n
;
smp_cmac.c:297
aes_cipher_msg_auth_code()
memset
(
cmac_cb
.
text
,
0
,
len
)
;
smp_cmac.c:299
aes_cipher_msg_auth_code()
memcpy
(
&
cmac_cb
.
text
[
diff
]
,
input
,
(
int
)
length
)
;
smp_cmac.c:303
aes_cipher_msg_auth_code()
cmac_cb
.
len
=
length
;
smp_cmac.c:304
aes_cipher_msg_auth_code()
cmac_cb
.
len
=
0
;
smp_cmac.c:306
aes_cipher_msg_auth_code()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
cmac_cb
is read by 4 functions:
All items filtered out
cmac_cb
cmac_aes_cleanup()
cmac_aes_k_calculate()
cmac_prepare_last_block()
aes_cipher_msg_auth_code()
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