netxduo
NX_CRYPTO_AES
is only used within netxduo.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (6/7)...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
netxduo
NX_CRYPTO_AES
NX_CRYPTO_AES struct
Syntax
Show:
Summary
Declaration
from
nx_crypto_aes.h:123
typedef
struct
NX_CRYPTO_AES_STRUCT
{
UINT
nx_crypto_aes_state
[
NX_CRYPTO_AES_STATE_NB_BYTES
]
;
USHORT
nx_crypto_aes_key_size
;
UCHAR
nx_crypto_aes_rounds
;
UCHAR
nx_crypto_aes_inverse_key_expanded
;
UINT
nx_crypto_aes_key_schedule
[
NX_CRYPTO_AES_MAX_KEY_SIZE
*
8
]
;
UINT
nx_crypto_aes_decrypt_key_schedule
[
NX_CRYPTO_AES_MAX_KEY_SIZE
*
8
]
;
union
{
NX_CRYPTO_CBC
cbc
;
NX_CRYPTO_CTR
ctr
;
NX_CRYPTO_GCM
gcm
;
NX_CRYPTO_CCM
ccm
;
}
nx_crypto_aes_mode_context
;
}
NX_CRYPTO_AES
;
Fields
Field
Declared as
NX_CRYPTO_AES_STRUCT::nx_crypto_aes_state
UINT
[
NX_CRYPTO_AES_STATE_NB_BYTES
]
NX_CRYPTO_AES_STRUCT::nx_crypto_aes_key_size
USHORT
NX_CRYPTO_AES_STRUCT::nx_crypto_aes_rounds
UCHAR
NX_CRYPTO_AES_STRUCT::nx_crypto_aes_inverse_key_expanded
UCHAR
NX_CRYPTO_AES_STRUCT::nx_crypto_aes_key_schedule
UINT
[
NX_CRYPTO_AES_MAX_KEY_SIZE
*
8
]
NX_CRYPTO_AES_STRUCT::nx_crypto_aes_decrypt_key_schedule
UINT
[
NX_CRYPTO_AES_MAX_KEY_SIZE
*
8
]
NX_CRYPTO_AES_STRUCT::nx_crypto_aes_mode_context
union
{
NX_CRYPTO_CBC
cbc
;
NX_CRYPTO_CTR
ctr
;
NX_CRYPTO_GCM
gcm
;
NX_CRYPTO_CCM
ccm
;
}
Related Functions
Found 10 other functions taking a
NX_CRYPTO_AES_STRUCT
argument:
Function
_nx_crypto_aes_encrypt()
_nx_crypto_aes_key_set()
_nx_crypto_aes_decrypt()
_nx_crypto_aes_add_round_key()
_nx_crypto_aes_key_expansion_inverse()
_nx_crypto_aes_key_expansion()
_nx_crypto_aes_sub_shift_roundkey()
_nx_crypto_aes_decryption_round()
_nx_crypto_aes_inv_sub_shift_roundkey()
_nx_crypto_aes_encryption_round()
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
struct
NX_CRYPTO_AES_STRUCT
nx_crypto_aes.h:123
}
NX_CRYPTO_AES
;
nx_crypto_aes.h:151
NX_CRYPTO_KEEP
static
VOID
_nx_crypto_aes_add_round_key
(
NX_CRYPTO_AES
*
aes_ptr
,
UINT
*
round_key
)
nx_crypto_aes.c:456
_nx_crypto_aes_add_round_key()
_nx_crypto_aes_add_round_key()::aes_ptr
NX_CRYPTO_KEEP
static
VOID
_nx_crypto_aes_sub_shift_roundkey
(
NX_CRYPTO_AES
*
aes_ptr
,
UINT
*
round_key
)
nx_crypto_aes.c:514
_nx_crypto_aes_sub_shift_roundkey()
_nx_crypto_aes_sub_shift_roundkey()::aes_ptr
NX_CRYPTO_KEEP
static
VOID
_nx_crypto_aes_inv_sub_shift_roundkey
(
NX_CRYPTO_AES
*
aes_ptr
,
UINT
*
round_key
)
nx_crypto_aes.c:606
_nx_crypto_aes_inv_sub_shift_roundkey()
_nx_crypto_aes_inv_sub_shift_roundkey()::aes_ptr
NX_CRYPTO_KEEP
static
VOID
_nx_crypto_aes_encryption_round
(
NX_CRYPTO_AES
*
aes_ptr
,
int
num_rounds
)
nx_crypto_aes.c:722
_nx_crypto_aes_encryption_round()
_nx_crypto_aes_encryption_round()::aes_ptr
NX_CRYPTO_KEEP
static
VOID
_nx_crypto_aes_decryption_round
(
NX_CRYPTO_AES
*
aes_ptr
,
int
round
)
nx_crypto_aes.c:906
_nx_crypto_aes_decryption_round()
_nx_crypto_aes_decryption_round()::aes_ptr
NX_CRYPTO_KEEP
UINT
_nx_crypto_aes_encrypt
(
NX_CRYPTO_AES
*
aes_ptr
,
UCHAR
*
input
,
UCHAR
*
output
,
UINT
length
)
nx_crypto_aes.c:1051
_nx_crypto_aes_encrypt()
_nx_crypto_aes_encrypt()::aes_ptr
NX_CRYPTO_KEEP
static
VOID
_nx_crypto_aes_key_expansion
(
NX_CRYPTO_AES
*
aes_ptr
)
nx_crypto_aes.c:1230
_nx_crypto_aes_key_expansion()
_nx_crypto_aes_key_expansion()::aes_ptr
NX_CRYPTO_KEEP
static
VOID
_nx_crypto_aes_key_expansion_inverse
(
NX_CRYPTO_AES
*
aes_ptr
)
nx_crypto_aes.c:1358
_nx_crypto_aes_key_expansion_inverse()
_nx_crypto_aes_key_expansion_inverse()::aes_ptr
NX_CRYPTO_KEEP
UINT
_nx_crypto_aes_decrypt
(
NX_CRYPTO_AES
*
aes_ptr
,
UCHAR
*
input
,
UCHAR
*
output
,
UINT
length
)
nx_crypto_aes.c:1509
_nx_crypto_aes_decrypt()
_nx_crypto_aes_decrypt()::aes_ptr
NX_CRYPTO_KEEP
UINT
_nx_crypto_aes_key_set
(
NX_CRYPTO_AES
*
aes_ptr
,
UCHAR
*
key
,
UINT
key_size
)
nx_crypto_aes.c:1658
_nx_crypto_aes_key_set()
_nx_crypto_aes_key_set()::aes_ptr
if
(
crypto_metadata_size
<
sizeof
(
NX_CRYPTO_AES
)
)
nx_crypto_aes.c:1767
_nx_crypto_method_aes_init()
NX_CRYPTO_MEMSET
(
&
(
(
NX_CRYPTO_AES
*
)
crypto_metadata
)
->
nx_crypto_aes_mode_context
,
0
,
sizeof
(
(
(
NX_CRYPTO_AES
*
)
crypto_metadata
)
->
nx_crypto_aes_mode_context
)
)
;
nx_crypto_aes.c:1778
_nx_crypto_method_aes_init()
_nx_crypto_aes_key_set
(
(
NX_CRYPTO_AES
*
)
crypto_metadata
,
key
,
key_size_in_bits
>
>
5
)
;
nx_crypto_aes.c:1780
_nx_crypto_method_aes_init()
if
(
crypto_metadata_size
<
sizeof
(
NX_CRYPTO_AES
)
)
nx_crypto_aes.c:1926
_nx_crypto_method_aes_operation()
NX_CRYPTO_AES
*
ctx
;
nx_crypto_aes.c:2062
_nx_crypto_method_aes_cbc_operation()
if
(
crypto_metadata_size
<
sizeof
(
NX_CRYPTO_AES
)
)
nx_crypto_aes.c:2080
_nx_crypto_method_aes_cbc_operation()
ctx
=
(
NX_CRYPTO_AES
*
)
crypto_metadata
;
nx_crypto_aes.c:2085
_nx_crypto_method_aes_cbc_operation()
NX_CRYPTO_AES
*
ctx
;
nx_crypto_aes.c:2236
_nx_crypto_method_aes_ccm_operation()
if
(
crypto_metadata_size
<
sizeof
(
NX_CRYPTO_AES
)
)
nx_crypto_aes.c:2254
_nx_crypto_method_aes_ccm_operation()
ctx
=
(
NX_CRYPTO_AES
*
)
crypto_metadata
;
nx_crypto_aes.c:2259
_nx_crypto_method_aes_ccm_operation()
NX_CRYPTO_AES
*
ctx
;
nx_crypto_aes.c:2533
_nx_crypto_method_aes_gcm_operation()
if
(
crypto_metadata_size
<
sizeof
(
NX_CRYPTO_AES
)
)
nx_crypto_aes.c:2553
_nx_crypto_method_aes_gcm_operation()
ctx
=
(
NX_CRYPTO_AES
*
)
crypto_metadata
;
nx_crypto_aes.c:2558
_nx_crypto_method_aes_gcm_operation()
NX_CRYPTO_AES
*
ctx
;
nx_crypto_aes.c:2828
_nx_crypto_method_aes_ctr_operation()
if
(
crypto_metadata_size
<
sizeof
(
NX_CRYPTO_AES
)
)
nx_crypto_aes.c:2845
_nx_crypto_method_aes_ctr_operation()
ctx
=
(
NX_CRYPTO_AES
*
)
crypto_metadata
;
nx_crypto_aes.c:2850
_nx_crypto_method_aes_ctr_operation()
NX_CRYPTO_AES
*
ctx
;
nx_crypto_aes.c:2978
_nx_crypto_method_aes_xcbc_operation()
if
(
crypto_metadata_size
<
sizeof
(
NX_CRYPTO_AES
)
)
nx_crypto_aes.c:2996
_nx_crypto_method_aes_xcbc_operation()
ctx
=
(
NX_CRYPTO_AES
*
)
crypto_metadata
;
nx_crypto_aes.c:3001
_nx_crypto_method_aes_xcbc_operation()
}
NX_CRYPTO_AES
;
nx_crypto_aes.h:151
NX_CRYPTO_AES
UINT
_nx_crypto_aes_encrypt
(
NX_CRYPTO_AES
*
aes_ptr
,
UCHAR
*
input
,
UCHAR
*
output
,
UINT
length
)
;
nx_crypto_aes.h:153
_nx_crypto_aes_encrypt()
_nx_crypto_aes_encrypt()::aes_ptr
UINT
_nx_crypto_aes_decrypt
(
NX_CRYPTO_AES
*
aes_ptr
,
UCHAR
*
input
,
UCHAR
*
output
,
UINT
length
)
;
nx_crypto_aes.h:154
_nx_crypto_aes_decrypt()
_nx_crypto_aes_decrypt()::aes_ptr
UINT
_nx_crypto_aes_key_set
(
NX_CRYPTO_AES
*
aes_ptr
,
UCHAR
*
key
,
UINT
key_size
)
;
nx_crypto_aes.h:156
_nx_crypto_aes_key_set()
_nx_crypto_aes_key_set()::aes_ptr
static
UCHAR
_nx_crypto_ctr_metadata
[
NX_CRYPTO_DRBG_CTR_METADATA_SIZE
]
;
nx_crypto_drbg.c:32
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:131
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:145
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:159
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:174
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:188
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:202
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:216
sizeof
(
NX_CRYPTO_AES
)
,
/* Metadata size in bytes */
nx_crypto_methods.c:230
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
Instance
Scope
Location
Project
_nx_crypto_aes_encrypt()::aes_ptr
_nx_crypto_aes_encrypt()
nx_crypto_aes.h:153
_nx_crypto_aes_decrypt()::aes_ptr
_nx_crypto_aes_decrypt()
nx_crypto_aes.h:154
_nx_crypto_aes_key_set()::aes_ptr
_nx_crypto_aes_key_set()
nx_crypto_aes.h:156
_nx_crypto_aes_add_round_key()::aes_ptr
_nx_crypto_aes_add_round_key()
nx_crypto_aes.c:456
_nx_crypto_aes_sub_shift_roundkey()::aes_ptr
_nx_crypto_aes_sub_shift_roundkey()
nx_crypto_aes.c:514
_nx_crypto_aes_inv_sub_shift_roundkey()::aes_ptr
_nx_crypto_aes_inv_sub_shift_roundkey()
nx_crypto_aes.c:606
_nx_crypto_aes_encryption_round()::aes_ptr
_nx_crypto_aes_encryption_round()
nx_crypto_aes.c:722
_nx_crypto_aes_decryption_round()::aes_ptr
_nx_crypto_aes_decryption_round()
nx_crypto_aes.c:906
_nx_crypto_aes_encrypt()::aes_ptr
_nx_crypto_aes_encrypt()
nx_crypto_aes.c:1051
_nx_crypto_aes_key_expansion()::aes_ptr
_nx_crypto_aes_key_expansion()
nx_crypto_aes.c:1230
_nx_crypto_aes_key_expansion_inverse()::aes_ptr
_nx_crypto_aes_key_expansion_inverse()
nx_crypto_aes.c:1358
_nx_crypto_aes_decrypt()::aes_ptr
_nx_crypto_aes_decrypt()
nx_crypto_aes.c:1509
_nx_crypto_aes_key_set()::aes_ptr
_nx_crypto_aes_key_set()
nx_crypto_aes.c:1658
Lifecycle
from
examples
All items filtered out
All items filtered out