mbed TLS v2.2.0
|
AES block cipher.
Copyright (C) 2015-2016, Silicon Labs, http://www.silabs.com SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file aes_alt.h.
Go to the source code of this file.
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... | |