STCRYPTOLIB_AES_ALT ¶
MBEDTLS IMPLEMENTATION STCRYPTOLIB AES ALT TYPES ¶
- group MBEDTLS_IMPLEMENTATION_STCRYPTOLIB_AES_ALT_TYPES
-
AES context structure definitions for STCRYPTOLIB.
-
struct
mbedtls_aes_context
-
#include <hal_aes_alt.h>
AES context structure.
Public Members
-
uint32_t
aes_key
[
8
]
-
Size of key
-
uint32_t
Algorithm
-
Decryption key
-
uint32_t
ctx_save_cr
-
Algorithm set (or not) in driver
-
uint8_t
aes_key
[
32
]
-
Encryption/Decryption key
-
size_t
aes_key_size
-
Aes Key size
-
cmox_cipher_handle_t
*
cipher_ctx
-
Cipher ctx
-
cmox_cbc_handle_t
cbc_ctx
-
Cbc ctx
-
cmox_ecb_handle_t
ecb_ctx
-
Ecb ctx
-
uint8_t
ctx_init
-
Context init indicator
-
uint32_t
aes_key
[
8
]
-
struct
mbedtls_aes_xts_context
-
#include <hal_aes_alt.h>
The AES XTS context-type definition.
Public Members
-
mbedtls_aes_context
crypt
-
The AES context to use for AES block encryption or decryption.
-
mbedtls_aes_context
tweak
-
The AES context used for tweak computation.
-
mbedtls_aes_context
crypt
-
struct
mbedtls_aes_context
MBEDTLS IMPLEMENTATION STCRYPTOLIB AES ALT FUNCTIONS ¶
- group MBEDTLS_IMPLEMENTATION_STCRYPTOLIB_AES_ALT_FUNCTIONS
-
Public API functions for STCRYPTOLIB AES alternate implementation.
This file implements AES block cipher based on STM32 crypto library.
FIPS-197 compliant AES implementation The AES block cipher was designed by Vincent Rijmen and Joan Daemen.
http://csrc.nist.gov/encryption/aes/rijndael/Rijndael.pdf http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
Defines
-
GET_UINT64_LE
(
n
,
b
,
i
)
-
PUT_UINT64_LE
(
n
,
b
,
i
)
Functions
-
void
mbedtls_aes_init
(
mbedtls_aes_context
*
ctx
)
-
void
mbedtls_aes_free
(
mbedtls_aes_context
*
ctx
)
-
void
mbedtls_aes_xts_init
(
mbedtls_aes_xts_context
*
ctx
)
-
void
mbedtls_aes_xts_free
(
mbedtls_aes_xts_context
*
ctx
)
-
int
mbedtls_aes_setkey_enc
(
mbedtls_aes_context
*
ctx
,
const
unsigned
char
*
key
,
unsigned
int
keybits
)
-
AES key schedule (encryption)
-
int
mbedtls_aes_xts_setkey_enc
(
mbedtls_aes_xts_context
*
ctx
,
const
unsigned
char
*
key
,
unsigned
int
keybits
)
-
int
mbedtls_aes_xts_setkey_dec
(
mbedtls_aes_xts_context
*
ctx
,
const
unsigned
char
*
key
,
unsigned
int
keybits
)
-
int
mbedtls_aes_setkey_dec
(
mbedtls_aes_context
*
ctx
,
const
unsigned
char
*
key
,
unsigned
int
keybits
)
-
AES key schedule (decryption)
-
int
mbedtls_aes_crypt_ecb
(
mbedtls_aes_context
*
ctx
,
int
mode
,
const
unsigned
char
input
[
16
]
,
unsigned
char
output
[
16
]
)
-
AES-ECB block encryption/decryption.
-
int
mbedtls_aes_crypt_xts
(
mbedtls_aes_xts_context
*
ctx
,
int
mode
,
size_t
length
,
const
unsigned
char
data_unit
[
16
]
,
const
unsigned
char
*
input
,
unsigned
char
*
output
)
-
AES-XTS buffer encryption/decryption.
-
int
mbedtls_internal_aes_encrypt
(
mbedtls_aes_context
*
ctx
,
const
unsigned
char
input
[
16
]
,
unsigned
char
output
[
16
]
)
-
int
mbedtls_internal_aes_decrypt
(
mbedtls_aes_context
*
ctx
,
const
unsigned
char
input
[
16
]
,
unsigned
char
output
[
16
]
)
-
GET_UINT64_LE
(
n
,
b
,
i
)