sam4c_crypto.h
Go to the documentation of this file.
1 /**
2  * @file sam4c_crypto.h
3  * @brief SAM4C hardware cryptographic 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.0
29  **/
30 
31 #ifndef _SAM4C_CRYPTO_H
32 #define _SAM4C_CRYPTO_H
33 
34 //Device-specific definitions
35 #if defined(__SAM4C4C_0__)
36  #include "sam4c4c_0.h"
37 #elif defined(__SAM4C4C_1__)
38  #include "sam4c4c_1.h"
39 #elif defined(__SAM4C8C_0__)
40  #include "sam4c8c_0.h"
41 #elif defined(__SAM4C8C_1__)
42  #include "sam4c8c_1.h"
43 #elif defined(__SAM4C16C_0__)
44  #include "sam4c16c_0.h"
45 #elif defined(__SAM4C16C_1__)
46  #include "sam4c16c_1.h"
47 #elif defined(__SAM4C32C_0__)
48  #include "sam4c32c_0.h"
49 #elif defined(__SAM4C32C_1__)
50  #include "sam4c32c_1.h"
51 #elif defined(__SAM4C32E_0__)
52  #include "sam4c32e_0.h"
53 #elif defined(__SAM4C32E_1__)
54  #include "sam4c32e_1.h"
55 #elif defined(__SAM4CP16B_0__)
56  #include "sam4cp16b_0.h"
57 #elif defined(__SAM4CP16B_1__)
58  #include "sam4cp16b_1.h"
59 #elif defined(__SAM4CP16C_0__)
60  #include "sam4cp16c_0.h"
61 #elif defined(__SAM4CP16C_1__)
62  #include "sam4cp16c_1.h"
63 #elif defined(__SAM4CMP8C_0__)
64  #include "sam4cmp8c_0.h"
65 #elif defined(__SAM4CMP8C_1__)
66  #include "sam4cmp8c_1.h"
67 #elif defined(__SAM4CMP16C_0__)
68  #include "sam4cmp16c_0.h"
69 #elif defined(__SAM4CMP16C_1__)
70  #include "sam4cmp16c_1.h"
71 #elif defined(__SAM4CMS4C_0__)
72  #include "sam4cms4c_0.h"
73 #elif defined(__SAM4CMS4C_1__)
74  #include "sam4cms4c_1.h"
75 #elif defined(__SAM4CMS8C_0__)
76  #include "sam4cms8c_0.h"
77 #elif defined(__SAM4CMS8C_1__)
78  #include "sam4cms8c_1.h"
79 #elif defined(__SAM4CMS16C_0__)
80  #include "sam4cms16c_0.h"
81 #elif defined(__SAM4CMS16C_1__)
82  #include "sam4cms16c_1.h"
83 #elif defined(__SAM4CMP32C_0__)
84  #include "sam4cmp32c_0.h"
85 #elif defined(__SAM4CMP32C_1__)
86  #include "sam4cmp32c_1.h"
87 #elif defined(__SAM4CMS32C_0__)
88  #include "sam4cms32c_0.h"
89 #elif defined(__SAM4CMS32C_1__)
90  #include "sam4cms32c_1.h"
91 #endif
92 
93 //Dependencies
94 #include "core/crypto.h"
95 
96 //C++ guard
97 #ifdef __cplusplus
98 extern "C" {
99 #endif
100 
101 //Global variables
103 
104 //SAM4C hardware cryptographic accelerator related functions
106 
107 //C++ guard
108 #ifdef __cplusplus
109 }
110 #endif
111 
112 #endif
General definitions for cryptographic algorithms.
error_t
Error codes.
Definition: error.h:43
OsMutex sam4cCryptoMutex
Definition: sam4c_crypto.c:43
error_t sam4cCryptoInit(void)
Initialize hardware cryptographic accelerator.
Definition: sam4c_crypto.c:51
Mutex object.