mbed TLS v2.2.0
Data Structures | Macros | Typedefs | Enumerations
aesdrv.h File Reference

Detailed Description

Definitions for AES based ciphers with CRYPTO hw acceleration.

Copyright (C) 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 aesdrv.h.

#include <config-sl-crypto-all-acceleration.h>
#include "em_device.h"
#include "mbedtls_ecode.h"
#include <stdint.h>
#include <stdbool.h>
#include "cryptodrv.h"
Include dependency graph for aesdrv.h:

Go to the source code of this file.

Data Structures

struct  AESDRV_DmaConfig_t
 DMA I/O mode specific configuration structure. More...
 
union  AESDRV_IoModeSpecific_t
 Data I/O mode specific configuration structure. More...
 
struct  AESDRV_Context_t
 

Macros

#define MBEDTLS_ECODE_AESDRV_NOT_SUPPORTED   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x1)
 
#define MBEDTLS_ECODE_AESDRV_AUTHENTICATION_FAILED   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x2)
 
#define MBEDTLS_ECODE_AESDRV_OUT_OF_RESOURCES   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x3)
 
#define MBEDTLS_ECODE_AESDRV_INVALID_PARAM   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x4)
 

Typedefs

typedef void(* AESDRV_CtrCallback_t) (uint8_t *ctr)
 Prototype of counter callback function provided by user. More...
 

Enumerations

enum  AESDRV_IoMode_t { aesdrvIoModeCore, aesdrvIoModeDma }
 Enum defines which data I/O mode to use for moving data to/from the AES/CRYPTO hardware module. More...
 

Macro Definition Documentation

#define MBEDTLS_ECODE_AESDRV_AUTHENTICATION_FAILED   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x2)

Definition at line 48 of file aesdrv.h.

#define MBEDTLS_ECODE_AESDRV_INVALID_PARAM   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x4)

Definition at line 50 of file aesdrv.h.

#define MBEDTLS_ECODE_AESDRV_NOT_SUPPORTED   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x1)

Definition at line 47 of file aesdrv.h.

#define MBEDTLS_ECODE_AESDRV_OUT_OF_RESOURCES   ((int)MBEDTLS_ECODE_AESDRV_BASE | 0x3)

Definition at line 49 of file aesdrv.h.

Typedef Documentation

typedef void(* AESDRV_CtrCallback_t) (uint8_t *ctr)

Prototype of counter callback function provided by user.

Definition at line 78 of file aesdrv.h.

Enumeration Type Documentation

Enum defines which data I/O mode to use for moving data to/from the AES/CRYPTO hardware module.

Enumerator
aesdrvIoModeCore 
aesdrvIoModeDma 

Core CPU moves data to/from the data registers.

DMA moves data to/from the CRYPTO data registers.

Definition at line 58 of file aesdrv.h.