Jerry Yu | 4923131 | 2023-01-10 16:57:21 +0800 | [diff] [blame^] | 1 | /** |
| 2 | * \file aesce.h |
| 3 | * |
| 4 | * \brief AES-CE for hardware AES acceleration on ARMv8 processors with crypto |
| 5 | * engine. |
| 6 | * |
| 7 | * \warning These functions are only for internal use by other library |
| 8 | * functions; you must not call them directly. |
| 9 | */ |
| 10 | /* |
| 11 | * Copyright The Mbed TLS Contributors |
| 12 | * SPDX-License-Identifier: Apache-2.0 |
| 13 | * |
| 14 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 15 | * not use this file except in compliance with the License. |
| 16 | * You may obtain a copy of the License at |
| 17 | * |
| 18 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 19 | * |
| 20 | * Unless required by applicable law or agreed to in writing, software |
| 21 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 22 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 23 | * See the License for the specific language governing permissions and |
| 24 | * limitations under the License. |
| 25 | */ |
| 26 | #ifndef MBEDTLS_AESCE_H |
| 27 | #define MBEDTLS_AESCE_H |
| 28 | |
| 29 | #include "mbedtls/build_info.h" |
| 30 | |
| 31 | #include "mbedtls/aes.h" |
| 32 | |
| 33 | |
| 34 | #if !defined(MBEDTLS_HAVE_ARM64) && \ |
| 35 | (defined(__aarch64__) || defined(_M_ARM64)) |
| 36 | #define MBEDTLS_HAVE_ARM64 |
| 37 | #endif |
| 38 | |
| 39 | #if defined(MBEDTLS_HAVE_ARM64) |
| 40 | |
| 41 | #ifdef __cplusplus |
| 42 | extern "C" { |
| 43 | #endif |
| 44 | #ifdef __cplusplus |
| 45 | } |
| 46 | #endif |
| 47 | |
| 48 | #endif /* MBEDTLS_HAVE_ARM64 */ |
| 49 | |
| 50 | #endif /* MBEDTLS_AESCE_H */ |