Toggle navigation
Home
CycloneTCP
CycloneSSL
CycloneSSH
CycloneIPSEC
CycloneSTP
CycloneACME
CycloneCRYPTO
Download
Main Page
Data Structures
Files
File List
Globals
cyclone_crypto
hardware
tm4c129
tm4c129_crypto_hash.h
Go to the documentation of this file.
1
/**
2
* @file tm4c129_crypto_hash.h
3
* @brief Tiva TM4C129 hash hardware accelerator
4
*
5
* @section License
6
*
7
* SPDX-License-Identifier: GPL-2.0-or-later
8
*
9
* Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
10
*
11
* This file is part of CycloneCRYPTO Open.
12
*
13
* This program is free software; you can redistribute it and/or
14
* modify it under the terms of the GNU General Public License
15
* as published by the Free Software Foundation; either version 2
16
* of the License, or (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License
24
* along with this program; if not, write to the Free Software Foundation,
25
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
*
27
* @author Oryx Embedded SARL (www.oryx-embedded.com)
28
* @version 2.4.4
29
**/
30
31
#ifndef _TM4C129_CRYPTO_HASH_H
32
#define _TM4C129_CRYPTO_HASH_H
33
34
//Dependencies
35
#include "
core/crypto.h
"
36
37
//Hash hardware accelerator
38
#ifndef TM4C129_CRYPTO_HASH_SUPPORT
39
#define TM4C129_CRYPTO_HASH_SUPPORT DISABLED
40
#elif (TM4C129_CRYPTO_HASH_SUPPORT != ENABLED && TM4C129_CRYPTO_HASH_SUPPORT != DISABLED)
41
#error TM4C129_CRYPTO_HASH_SUPPORT parameter is not valid
42
#endif
43
44
//SHA/MD5 engine registers
45
#ifndef SHAMD5_ODIGEST_A_R
46
#define SHAMD5_ODIGEST_A_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_A)
47
#define SHAMD5_ODIGEST_B_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_B)
48
#define SHAMD5_ODIGEST_C_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_C)
49
#define SHAMD5_ODIGEST_D_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_D)
50
#define SHAMD5_ODIGEST_E_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_E)
51
#define SHAMD5_ODIGEST_F_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_F)
52
#define SHAMD5_ODIGEST_G_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_G)
53
#define SHAMD5_ODIGEST_H_R HWREG(SHAMD5_BASE + SHAMD5_O_ODIGEST_H)
54
#define SHAMD5_IDIGEST_A_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_A)
55
#define SHAMD5_IDIGEST_B_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_B)
56
#define SHAMD5_IDIGEST_C_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_C)
57
#define SHAMD5_IDIGEST_D_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_D)
58
#define SHAMD5_IDIGEST_E_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_E)
59
#define SHAMD5_IDIGEST_F_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_F)
60
#define SHAMD5_IDIGEST_G_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_G)
61
#define SHAMD5_IDIGEST_H_R HWREG(SHAMD5_BASE + SHAMD5_O_IDIGEST_H)
62
#define SHAMD5_DIGEST_COUNT_R HWREG(SHAMD5_BASE + SHAMD5_O_DIGEST_COUNT)
63
#define SHAMD5_MODE_R HWREG(SHAMD5_BASE + SHAMD5_O_MODE)
64
#define SHAMD5_LENGTH_R HWREG(SHAMD5_BASE + SHAMD5_O_LENGTH)
65
#define SHAMD5_DATA_0_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_0_IN)
66
#define SHAMD5_DATA_1_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_1_IN)
67
#define SHAMD5_DATA_2_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_2_IN)
68
#define SHAMD5_DATA_3_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_3_IN)
69
#define SHAMD5_DATA_4_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_4_IN)
70
#define SHAMD5_DATA_5_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_5_IN)
71
#define SHAMD5_DATA_6_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_6_IN)
72
#define SHAMD5_DATA_7_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_7_IN)
73
#define SHAMD5_DATA_8_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_8_IN)
74
#define SHAMD5_DATA_9_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_9_IN)
75
#define SHAMD5_DATA_10_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_10_IN)
76
#define SHAMD5_DATA_11_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_11_IN)
77
#define SHAMD5_DATA_12_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_12_IN)
78
#define SHAMD5_DATA_13_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_13_IN)
79
#define SHAMD5_DATA_14_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_14_IN)
80
#define SHAMD5_DATA_15_IN_R HWREG(SHAMD5_BASE + SHAMD5_O_DATA_15_IN)
81
#define SHAMD5_REVISION_R HWREG(SHAMD5_BASE + SHAMD5_O_REVISION)
82
#define SHAMD5_SYSCONFIG_R HWREG(SHAMD5_BASE + SHAMD5_O_SYSCONFIG)
83
#define SHAMD5_SYSSTATUS_R HWREG(SHAMD5_BASE + SHAMD5_O_SYSSTATUS)
84
#define SHAMD5_IRQSTATUS_R HWREG(SHAMD5_BASE + SHAMD5_O_IRQSTATUS)
85
#define SHAMD5_IRQENABLE_R HWREG(SHAMD5_BASE + SHAMD5_O_IRQENABLE)
86
#define SHAMD5_DMAIM_R HWREG(SHAMD5_BASE + SHAMD5_O_DMAIM)
87
#define SHAMD5_DMARIS_R HWREG(SHAMD5_BASE + SHAMD5_O_DMARIS)
88
#define SHAMD5_DMAMIS_R HWREG(SHAMD5_BASE + SHAMD5_O_DMAMIS)
89
#define SHAMD5_DMAIC_R HWREG(SHAMD5_BASE + SHAMD5_O_DMAIC)
90
#endif
91
92
//C++ guard
93
#ifdef __cplusplus
94
extern
"C"
{
95
#endif
96
97
//C++ guard
98
#ifdef __cplusplus
99
}
100
#endif
101
102
#endif
crypto.h
General definitions for cryptographic algorithms.