Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sha256_alt.h Source File

sha256_alt.h

00001 /*
00002  *  sha256_alt.h
00003  *
00004  *  Copyright (C) 2018, 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 __SHA256_ALT__
00022 #define __SHA256_ALT__
00023 
00024 #if defined(MBEDTLS_SHA256_ALT)
00025 
00026 #include "crys_hash.h"
00027 
00028 /**
00029  * \brief          SHA-256 context structure
00030  */
00031 typedef struct
00032 {
00033     CRYS_HASHUserContext_t  crys_hash_ctx;
00034 } mbedtls_sha256_context;
00035 
00036 #endif // MBEDTLS_SHA256_ALT__
00037 #endif //__SHA256_ALT__