mbed-os5 only for TYBLE16
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
features/cryptocell/FEATURE_CRYPTOCELL310/aes_alt.h@1:9db0e321a9f4, 2019-12-31 (annotated)
- Committer:
- kenjiArai
- Date:
- Tue Dec 31 06:02:27 2019 +0000
- Revision:
- 1:9db0e321a9f4
updated based on mbed-os5.15.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 1:9db0e321a9f4 | 1 | /* |
kenjiArai | 1:9db0e321a9f4 | 2 | * aes_alt.h |
kenjiArai | 1:9db0e321a9f4 | 3 | * |
kenjiArai | 1:9db0e321a9f4 | 4 | * Copyright (C) 2019, Arm Limited, All Rights Reserved |
kenjiArai | 1:9db0e321a9f4 | 5 | * SPDX-License-Identifier: Apache-2.0 |
kenjiArai | 1:9db0e321a9f4 | 6 | * |
kenjiArai | 1:9db0e321a9f4 | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
kenjiArai | 1:9db0e321a9f4 | 8 | * not use this file except in compliance with the License. |
kenjiArai | 1:9db0e321a9f4 | 9 | * You may obtain a copy of the License at |
kenjiArai | 1:9db0e321a9f4 | 10 | * |
kenjiArai | 1:9db0e321a9f4 | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
kenjiArai | 1:9db0e321a9f4 | 12 | * |
kenjiArai | 1:9db0e321a9f4 | 13 | * Unless required by applicable law or agreed to in writing, software |
kenjiArai | 1:9db0e321a9f4 | 14 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
kenjiArai | 1:9db0e321a9f4 | 15 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kenjiArai | 1:9db0e321a9f4 | 16 | * See the License for the specific language governing permissions and |
kenjiArai | 1:9db0e321a9f4 | 17 | * limitations under the License. |
kenjiArai | 1:9db0e321a9f4 | 18 | * |
kenjiArai | 1:9db0e321a9f4 | 19 | */ |
kenjiArai | 1:9db0e321a9f4 | 20 | |
kenjiArai | 1:9db0e321a9f4 | 21 | #ifndef __AES_ALT__ |
kenjiArai | 1:9db0e321a9f4 | 22 | #define __AES_ALT__ |
kenjiArai | 1:9db0e321a9f4 | 23 | |
kenjiArai | 1:9db0e321a9f4 | 24 | #if defined(MBEDTLS_AES_ALT) |
kenjiArai | 1:9db0e321a9f4 | 25 | #include "ssi_aes.h" |
kenjiArai | 1:9db0e321a9f4 | 26 | #ifdef __cplusplus |
kenjiArai | 1:9db0e321a9f4 | 27 | extern "C" { |
kenjiArai | 1:9db0e321a9f4 | 28 | #endif |
kenjiArai | 1:9db0e321a9f4 | 29 | |
kenjiArai | 1:9db0e321a9f4 | 30 | typedef struct |
kenjiArai | 1:9db0e321a9f4 | 31 | { |
kenjiArai | 1:9db0e321a9f4 | 32 | SaSiAesUserContext_t CC_Context; |
kenjiArai | 1:9db0e321a9f4 | 33 | SaSiAesEncryptMode_t CC_cipherFlag; |
kenjiArai | 1:9db0e321a9f4 | 34 | uint8_t CC_Key[SASI_AES_KEY_MAX_SIZE_IN_BYTES]; |
kenjiArai | 1:9db0e321a9f4 | 35 | size_t CC_keySizeInBytes; |
kenjiArai | 1:9db0e321a9f4 | 36 | } |
kenjiArai | 1:9db0e321a9f4 | 37 | mbedtls_aes_context; |
kenjiArai | 1:9db0e321a9f4 | 38 | |
kenjiArai | 1:9db0e321a9f4 | 39 | #if defined(MBEDTLS_CIPHER_MODE_XTS) |
kenjiArai | 1:9db0e321a9f4 | 40 | /** |
kenjiArai | 1:9db0e321a9f4 | 41 | * \brief The AES XTS context-type definition. |
kenjiArai | 1:9db0e321a9f4 | 42 | */ |
kenjiArai | 1:9db0e321a9f4 | 43 | typedef struct mbedtls_aes_xts_context |
kenjiArai | 1:9db0e321a9f4 | 44 | { |
kenjiArai | 1:9db0e321a9f4 | 45 | int unsupported; |
kenjiArai | 1:9db0e321a9f4 | 46 | } |
kenjiArai | 1:9db0e321a9f4 | 47 | mbedtls_aes_xts_context; |
kenjiArai | 1:9db0e321a9f4 | 48 | #endif /* MBEDTLS_CIPHER_MODE_XTS */ |
kenjiArai | 1:9db0e321a9f4 | 49 | |
kenjiArai | 1:9db0e321a9f4 | 50 | #ifdef __cplusplus |
kenjiArai | 1:9db0e321a9f4 | 51 | } |
kenjiArai | 1:9db0e321a9f4 | 52 | #endif |
kenjiArai | 1:9db0e321a9f4 | 53 | |
kenjiArai | 1:9db0e321a9f4 | 54 | #endif /* MBEDTLS_AES_ALT */ |
kenjiArai | 1:9db0e321a9f4 | 55 | #endif /* __AES_ALT__ */ |
kenjiArai | 1:9db0e321a9f4 | 56 |