Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers aes_alt.h Source File

aes_alt.h

00001 /*
00002  *  aes_alt.h
00003  *
00004  *  Copyright (C) 2019, Arm Limited, All Rights Reserved
00005  *  SPDX-License-Identifier: Apache-2.0
00006  *
00007  *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00008  *  not use this file except in compliance with the License.
00009  *  You may obtain a copy of the License at
00010  *
00011  *  http://www.apache.org/licenses/LICENSE-2.0
00012  *
00013  *  Unless required by applicable law or agreed to in writing, software
00014  *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00015  *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016  *  See the License for the specific language governing permissions and
00017  *  limitations under the License.
00018  *
00019  */
00020 
00021 #ifndef __AES_ALT__
00022 #define __AES_ALT__
00023 
00024 #if defined(MBEDTLS_AES_ALT)
00025 #include "ssi_aes.h"
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 typedef struct
00031 {
00032     SaSiAesUserContext_t  CC_Context;
00033     SaSiAesEncryptMode_t  CC_cipherFlag;
00034     uint8_t CC_Key[SASI_AES_KEY_MAX_SIZE_IN_BYTES];
00035     size_t CC_keySizeInBytes;
00036 }
00037 mbedtls_aes_context;
00038 
00039 #if defined(MBEDTLS_CIPHER_MODE_XTS)
00040 /**
00041  * \brief The AES XTS context-type definition.
00042  */
00043 typedef struct mbedtls_aes_xts_context
00044 {
00045     int unsupported;
00046 }
00047 mbedtls_aes_xts_context;
00048 #endif /* MBEDTLS_CIPHER_MODE_XTS */
00049 
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053 
00054 #endif /* MBEDTLS_AES_ALT */
00055 #endif /* __AES_ALT__ */
00056