Mistake on this page?
Report an issue in GitHub or email us
TARGET_Cypress/TARGET_MXCRYPTO/TARGET_MXCRYPTO_02/sha256_alt.h
1 /*
2  * mbed Microcontroller Library
3  * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
4  * Copyright (C) 2019 Cypress Semiconductor Corporation
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  * \file sha256_alt.h
22  * \version 1.0
23  *
24  * \brief header file - wrapper for mbedtls SHA256 HW acceleration
25  *
26  */
27 
28 
29 #if !defined(SHA256_ALT_H)
30 #define SHA256_ALT_H
31 
32 #if defined(MBEDTLS_CONFIG_FILE)
33 #include MBEDTLS_CONFIG_FILE
34 #else
35 #include "config.h"
36 #endif
37 
38 #include "crypto_common.h"
39 
40 #if defined(MBEDTLS_SHA256_ALT)
41 
42 typedef struct mbedtls_sha256_context {
43  cy_hw_crypto_t obj;
44  cy_stc_crypto_sha_state_t hashState; /* Structure used by CY Crypto Driver */
45  cy_stc_crypto_v2_sha256_buffers_t shaBuffers; /* Structure used by CY Crypto Driver */
46 }
47 mbedtls_sha256_context;
48 
49 #endif /* MBEDTLS_SHA256_ALT */
50 
51 #endif /* (SHA256_ALT_H) */
Header file for common mbedtls acceleration functions.
CRYPTO object.
Definition: crypto_common.h:43
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.