Mistake on this page?
Report an issue in GitHub or email us
FEATURE_CRYPTOCELL310/include/cryptocell310/aes_alt.h
1 /*
2  * aes_alt.h
3  *
4  * Copyright (C) 2019, Arm Limited, All Rights Reserved
5  * SPDX-License-Identifier: Apache-2.0
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may
8  * not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 #ifndef __AES_ALT__
22 #define __AES_ALT__
23 
24 #if defined(MBEDTLS_AES_ALT)
25 #include "ssi_aes.h"
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 typedef struct
31 {
32  SaSiAesUserContext_t CC_Context;
33  SaSiAesEncryptMode_t CC_cipherFlag;
34  uint8_t CC_Key[SASI_AES_KEY_MAX_SIZE_IN_BYTES];
35  size_t CC_keySizeInBytes;
36 }
37 mbedtls_aes_context;
38 
39 #if defined(MBEDTLS_CIPHER_MODE_XTS)
40 /**
41  * \brief The AES XTS context-type definition.
42  */
43 typedef struct mbedtls_aes_xts_context
44 {
45  int unsupported;
46 }
47 mbedtls_aes_xts_context;
48 #endif /* MBEDTLS_CIPHER_MODE_XTS */
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* MBEDTLS_AES_ALT */
55 #endif /* __AES_ALT__ */
56 
#define SASI_AES_KEY_MAX_SIZE_IN_BYTES
Definition: ssi_aes_defs.h:74
SaSiAesEncryptMode_t
Definition: ssi_aes.h:65
This file contains all of the enums and definitions that are used for the CryptoCell AES APIs...
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.