|
mbed TLS v2.2.0
|
CRYPTO hardware accelerated AES block cipher.
|
Data Structures | |
| struct | mbedtls_aes_context |
| AES context structure. More... | |
Macros | |
| #define | MBEDTLS_AES_ENCRYPT 1 |
| #define | MBEDTLS_AES_DECRYPT 0 |
| #define | MBEDTLS_ERR_AES_NOT_SUPPORTED ((int)MBEDTLS_ECODE_AESDRV_NOT_SUPPORTED) |
| #define | MBEDTLS_ERR_AES_AUTHENTICATION_FAILED ((int)MBEDTLS_ECODE_AESDRV_AUTHENTICATION_FAILED) |
| #define | MBEDTLS_ERR_AES_OUT_OF_RESOURCES ((int)MBEDTLS_ECODE_AESDRV_OUT_OF_RESOURCES) |
| #define | MBEDTLS_ERR_AES_INVALID_PARAM ((int)MBEDTLS_ECODE_AESDRV_INVALID_PARAM) |
Functions | |
| void | mbedtls_aes_init (mbedtls_aes_context *ctx) |
| Initialize AES context. More... | |
| void | mbedtls_aes_free (mbedtls_aes_context *ctx) |
| Clear AES context. More... | |
| int | mbedtls_aes_setkey_enc (mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits) |
| AES key schedule (encryption) More... | |
| int | mbedtls_aes_setkey_dec (mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits) |
| AES key schedule (decryption) More... | |
| 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. More... | |
| int | mbedtls_aes_self_test (int verbose) |
| Checkup routine. More... | |
| #define MBEDTLS_ERR_AES_AUTHENTICATION_FAILED ((int)MBEDTLS_ECODE_AESDRV_AUTHENTICATION_FAILED) |
| #define MBEDTLS_ERR_AES_INVALID_PARAM ((int)MBEDTLS_ECODE_AESDRV_INVALID_PARAM) |
| #define MBEDTLS_ERR_AES_NOT_SUPPORTED ((int)MBEDTLS_ECODE_AESDRV_NOT_SUPPORTED) |
| #define MBEDTLS_ERR_AES_OUT_OF_RESOURCES ((int)MBEDTLS_ECODE_AESDRV_OUT_OF_RESOURCES) |
| 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.
| ctx | AES context |
| mode | MBEDTLS_AES_ENCRYPT or MBEDTLS_AES_DECRYPT |
| input | 16-byte input block |
| output | 16-byte output block |
| void mbedtls_aes_free | ( | mbedtls_aes_context * | ctx | ) |
Clear AES context.
| ctx | AES context to be cleared |
| void mbedtls_aes_init | ( | mbedtls_aes_context * | ctx | ) |
Initialize AES context.
| ctx | AES context to be initialized |
| int mbedtls_aes_self_test | ( | int | verbose | ) |
Checkup routine.
| int mbedtls_aes_setkey_dec | ( | mbedtls_aes_context * | ctx, |
| const unsigned char * | key, | ||
| unsigned int | keybits | ||
| ) |
AES key schedule (decryption)
| ctx | AES context to be initialized |
| key | decryption key |
| keybits | must be 128, 192 or 256 |
| int mbedtls_aes_setkey_enc | ( | mbedtls_aes_context * | ctx, |
| const unsigned char * | key, | ||
| unsigned int | keybits | ||
| ) |
AES key schedule (encryption)
| ctx | AES context to be initialized |
| key | encryption key |
| keybits | must be 128, 192 or 256 |
1.8.10