/* * Copyright (c) 2014-2018, Arm Limited and affiliates. * 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. */ /** * \file arm_hal_aes.h * \brief AES Platform API */ #ifndef ARM_HAL_AES_H_ #define ARM_HAL_AES_H_ /* The network library requires a simple AES implementation for its * IEEE 802.15.4 security. The expectation is that 802.15.4 devices will have * some hardware acceleration, which should be made available through this API. * * If no hardware acceleration is available, the API can be easily hooked up to * an external software library such as mbed TLS. * * To simplify porting, the API is used single-threaded, so that no special care * is needed to maintain global context or state in the hardware accelerator. */ #include "ns_types.h" #ifdef __cplusplus extern "C" { #endif /* This API must be able to provide this many simultaneous contexts */ #if 1 /* config option for 802.15.4-2015? */ #define ARM_AES_MBEDTLS_CONTEXT_MIN 2 /**