ESP-IDF
Nb
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
Nb
Nb macro
Syntax
Show:
Summary
Declaration
from
aes.h:58
#define
Nb
(
4
)
Examples
References
from
examples
Code
Location
#define
Nb
(
4
)
/* number of columns (32-bit words) comprising the state */
aes.h:58
#define
Nb
(
4
)
/* number of columns (32-bit words) comprising the state */
aes.h:58
#define
TC_AES_BLOCK_SIZE
(
Nb
*
Nk
)
aes.h:61
#define
TC_AES_KEY_SIZE
(
Nb
*
Nk
)
aes.h:62
unsigned
int
words
[
Nb
*
(
Nr
+
1
)
]
;
aes.h:65
#define
TC_AES_BLOCK_SIZE
(
Nb
*
Nk
)
aes.h:61
#define
TC_AES_KEY_SIZE
(
Nb
*
Nk
)
aes.h:62
unsigned
int
words
[
Nb
*
(
Nr
+
1
)
]
;
aes.h:65
uint8_t
t
[
Nb
*
Nk
]
;
aes_decrypt.c:83
mult_row_column
(
&
t
[
Nb
]
,
s
+
Nb
)
;
aes_decrypt.c:86
mult_row_column
(
&
t
[
2
*
Nb
]
,
s
+
(
2
*
Nb
)
)
;
aes_decrypt.c:87
mult_row_column
(
&
t
[
3
*
Nb
]
,
s
+
(
3
*
Nb
)
)
;
aes_decrypt.c:88
for
(
i
=
0
;
i
<
(
Nb
*
Nk
)
;
++
i
)
{
aes_decrypt.c:108
uint8_t
t
[
Nb
*
Nk
]
;
aes_decrypt.c:120
uint8_t
state
[
Nk
*
Nb
]
;
aes_decrypt.c:131
add_round_key
(
state
,
s
->
words
+
Nb
*
Nr
)
;
aes_decrypt.c:144
add_round_key
(
state
,
s
->
words
+
Nb
*
i
)
;
aes_decrypt.c:149
uint8_t
t
[
Nb
*
Nk
]
;
aes_decrypt.c:83
mult_row_column
(
&
t
[
Nb
]
,
s
+
Nb
)
;
aes_decrypt.c:86
mult_row_column
(
&
t
[
2
*
Nb
]
,
s
+
(
2
*
Nb
)
)
;
aes_decrypt.c:87
mult_row_column
(
&
t
[
3
*
Nb
]
,
s
+
(
3
*
Nb
)
)
;
aes_decrypt.c:88
for
(
i
=
0
;
i
<
(
Nb
*
Nk
)
;
++
i
)
{
aes_decrypt.c:108
uint8_t
t
[
Nb
*
Nk
]
;
aes_decrypt.c:120
uint8_t
state
[
Nk
*
Nb
]
;
aes_decrypt.c:131
add_round_key
(
state
,
s
->
words
+
Nb
*
Nr
)
;
aes_decrypt.c:144
add_round_key
(
state
,
s
->
words
+
Nb
*
i
)
;
aes_decrypt.c:149
s
->
words
[
i
]
=
(
k
[
Nb
*
i
]
<
<
24
)
|
(
k
[
Nb
*
i
+
1
]
<
<
16
)
|
aes_encrypt.c:86
(
k
[
Nb
*
i
+
2
]
<
<
8
)
|
(
k
[
Nb
*
i
+
3
]
)
;
aes_encrypt.c:87
for
(
;
i
<
(
Nb
*
(
Nr
+
1
)
)
;
++
i
)
{
aes_encrypt.c:90
for
(
i
=
0
;
i
<
(
Nb
*
Nk
)
;
++
i
)
{
aes_encrypt.c:117
uint8_t
t
[
Nb
*
Nk
]
;
aes_encrypt.c:134
mult_row_column
(
&
t
[
Nb
]
,
s
+
Nb
)
;
aes_encrypt.c:137
mult_row_column
(
&
t
[
2
*
Nb
]
,
s
+
(
2
*
Nb
)
)
;
aes_encrypt.c:138
mult_row_column
(
&
t
[
3
*
Nb
]
,
s
+
(
3
*
Nb
)
)
;
aes_encrypt.c:139
uint8_t
t
[
Nb
*
Nk
]
;
aes_encrypt.c:149
uint8_t
state
[
Nk
*
Nb
]
;
aes_encrypt.c:160
add_round_key
(
state
,
s
->
words
+
Nb
*
(
i
+
1
)
)
;
aes_encrypt.c:178
add_round_key
(
state
,
s
->
words
+
Nb
*
(
i
+
1
)
)
;
aes_encrypt.c:183
s
->
words
[
i
]
=
(
k
[
Nb
*
i
]
<
<
24
)
|
(
k
[
Nb
*
i
+
1
]
<
<
16
)
|
aes_encrypt.c:86
(
k
[
Nb
*
i
+
2
]
<
<
8
)
|
(
k
[
Nb
*
i
+
3
]
)
;
aes_encrypt.c:87
for
(
;
i
<
(
Nb
*
(
Nr
+
1
)
)
;
++
i
)
{
aes_encrypt.c:90
for
(
i
=
0
;
i
<
(
Nb
*
Nk
)
;
++
i
)
{
aes_encrypt.c:117
uint8_t
t
[
Nb
*
Nk
]
;
aes_encrypt.c:134
mult_row_column
(
&
t
[
Nb
]
,
s
+
Nb
)
;
aes_encrypt.c:137
mult_row_column
(
&
t
[
2
*
Nb
]
,
s
+
(
2
*
Nb
)
)
;
aes_encrypt.c:138
mult_row_column
(
&
t
[
3
*
Nb
]
,
s
+
(
3
*
Nb
)
)
;
aes_encrypt.c:139
uint8_t
t
[
Nb
*
Nk
]
;
aes_encrypt.c:149
uint8_t
state
[
Nk
*
Nb
]
;
aes_encrypt.c:160
add_round_key
(
state
,
s
->
words
+
Nb
*
(
i
+
1
)
)
;
aes_encrypt.c:178
add_round_key
(
state
,
s
->
words
+
Nb
*
(
i
+
1
)
)
;
aes_encrypt.c:183
T
[
i
++
%
(
Nb
*
Nk
)
]
^=
*
data
++
;
ccm_mode.c:79
if
(
(
(
i
%
(
Nb
*
Nk
)
)
==
0
)
||
dlen
==
i
)
{
ccm_mode.c:80
uint8_t
b
[
Nb
*
Nk
]
;
ccm_mode.c:154
uint8_t
tag
[
Nb
*
Nk
]
;
ccm_mode.c:155
uint8_t
b
[
Nb
*
Nk
]
;
ccm_mode.c:215
uint8_t
tag
[
Nb
*
Nk
]
;
ccm_mode.c:216
T
[
i
++
%
(
Nb
*
Nk
)
]
^=
*
data
++
;
ccm_mode.c:79
if
(
(
(
i
%
(
Nb
*
Nk
)
)
==
0
)
||
dlen
==
i
)
{
ccm_mode.c:80
uint8_t
b
[
Nb
*
Nk
]
;
ccm_mode.c:154
uint8_t
tag
[
Nb
*
Nk
]
;
ccm_mode.c:155
uint8_t
b
[
Nb
*
Nk
]
;
ccm_mode.c:215
uint8_t
tag
[
Nb
*
Nk
]
;
ccm_mode.c:216
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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