Mistake on this page?
Report an issue in GitHub or email us
TARGET_Cypress/TARGET_MXCRYPTO/TARGET_MXCRYPTO_01/sha512_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 sha512_alt.h
22  * \version 1.0
23  *
24  * \brief header file - wrapper for mbedtls SHA512 HW acceleration
25  *
26  */
27 
28 #if !defined(SHA512_ALT_H)
29 #define SHA512_ALT_H
30 
31 #if defined(MBEDTLS_CONFIG_FILE)
32 #include MBEDTLS_CONFIG_FILE
33 #else
34 #include "config.h"
35 #endif
36 
37 #include "crypto_common.h"
38 
39 #if defined(MBEDTLS_SHA512_ALT)
40 
41 typedef struct mbedtls_sha512_context {
42  cy_hw_crypto_t obj;
43  cy_stc_crypto_sha_state_t hashState; /* Structure used by CY Crypto Driver */
44  cy_stc_crypto_v1_sha512_buffers_t shaBuffers; /* Structure used by CY Crypto Driver */
45 }
46 mbedtls_sha512_context;
47 
48 #endif /* MBEDTLS_SHA512_ALT */
49 
50 #endif /* (SHA512_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.