1 /**********************************************************
2  * This file has been automatically created by "typemaker2"
3  * from the file "cryptparams.xml".
4  * Please do not edit this file, all changes will be lost.
5  * Better edit the mentioned source file instead.
6  **********************************************************/
7 
8 #ifndef AQFINTS_CRYPTPARAMS_CRYPTPARAMS_H
9 #define AQFINTS_CRYPTPARAMS_CRYPTPARAMS_H
10 
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /** @page P_AQFINTS_CRYPTPARAMS Structure AQFINTS_CRYPTPARAMS
17 <p>This page describes the properties of AQFINTS_CRYPTPARAMS.</p>
18 
19 
20 
21 <h1>AQFINTS_CRYPTPARAMS</h1>
22 
23 
24 
25 @anchor AQFINTS_CRYPTPARAMS_securityProfileName
26 <h2>securityProfileName</h2>
27 
28 <p>Set this property with @ref AQFINTS_CryptParams_SetSecurityProfileName(), get it with @ref AQFINTS_CryptParams_GetSecurityProfileName().</p>
29 
30 
31 @anchor AQFINTS_CRYPTPARAMS_securityProfileVersion
32 <h2>securityProfileVersion</h2>
33 
34 <p>Set this property with @ref AQFINTS_CryptParams_SetSecurityProfileVersion(), get it with @ref AQFINTS_CryptParams_GetSecurityProfileVersion().</p>
35 
36 
37 @anchor AQFINTS_CRYPTPARAMS_signAlgo
38 <h2>signAlgo</h2>
39 
40 <p>Set this property with @ref AQFINTS_CryptParams_SetSignAlgo(), get it with @ref AQFINTS_CryptParams_GetSignAlgo().</p>
41 
42 
43 @anchor AQFINTS_CRYPTPARAMS_opModeSign
44 <h2>opModeSign</h2>
45 
46 <p>Set this property with @ref AQFINTS_CryptParams_SetOpModeSign(), get it with @ref AQFINTS_CryptParams_GetOpModeSign().</p>
47 
48 
49 @anchor AQFINTS_CRYPTPARAMS_opModeAuth
50 <h2>opModeAuth</h2>
51 
52 <p>Set this property with @ref AQFINTS_CryptParams_SetOpModeAuth(), get it with @ref AQFINTS_CryptParams_GetOpModeAuth().</p>
53 
54 
55 @anchor AQFINTS_CRYPTPARAMS_sigUsage
56 <h2>sigUsage</h2>
57 
58 <p>Set this property with @ref AQFINTS_CryptParams_SetSigUsage(), get it with @ref AQFINTS_CryptParams_GetSigUsage().</p>
59 
60 
61 @anchor AQFINTS_CRYPTPARAMS_hashAlgoSign
62 <h2>hashAlgoSign</h2>
63 
64 <p>Set this property with @ref AQFINTS_CryptParams_SetHashAlgoSign(), get it with @ref AQFINTS_CryptParams_GetHashAlgoSign().</p>
65 
66 
67 @anchor AQFINTS_CRYPTPARAMS_hashAlgoAuth
68 <h2>hashAlgoAuth</h2>
69 
70 <p>Set this property with @ref AQFINTS_CryptParams_SetHashAlgoAuth(), get it with @ref AQFINTS_CryptParams_GetHashAlgoAuth().</p>
71 
72 
73 @anchor AQFINTS_CRYPTPARAMS_cryptAlgo
74 <h2>cryptAlgo</h2>
75 
76 <p>Set this property with @ref AQFINTS_CryptParams_SetCryptAlgo(), get it with @ref AQFINTS_CryptParams_GetCryptAlgo().</p>
77 
78 
79 @anchor AQFINTS_CRYPTPARAMS_opModeCrypt
80 <h2>opModeCrypt</h2>
81 
82 <p>Set this property with @ref AQFINTS_CryptParams_SetOpModeCrypt(), get it with @ref AQFINTS_CryptParams_GetOpModeCrypt().</p>
83 
84 */
85 
86 /* needed system headers */
87 #include <gwenhywfar/types.h>
88 
89 /* pre-headers */
90 #include <libaqfints/aqfints.h>
91 #include <gwenhywfar/bindata.h>
92 
93 typedef struct AQFINTS_CRYPTPARAMS AQFINTS_CRYPTPARAMS;
94 
95 
96 
97 typedef enum {
98   AQFINTS_CryptParams_OpModeUnknown = -1,
99   AQFINTS_CryptParams_OpModeNone = 0,
100   AQFINTS_CryptParams_OpModeCbc = 2,
101   AQFINTS_CryptParams_OpModeIso9796_1 = 16,
102   AQFINTS_CryptParams_OpModeIso9796_2 = 17,
103   AQFINTS_CryptParams_OpModeRsa_Pkcs1_v1_5 = 18,
104   AQFINTS_CryptParams_OpModeRsa_Pss = 19,
105   AQFINTS_CryptParams_OpModeRetail_MAC = 999
106 } AQFINTS_CRYPTPARAMS_OPMODE;
107 
108 
109 typedef enum {
110   AQFINTS_CryptParams_HashAlgoUnknown = -1,
111   AQFINTS_CryptParams_HashAlgoNone = 0,
112   AQFINTS_CryptParams_HashAlgoSha1 = 1,
113   AQFINTS_CryptParams_HashAlgoSha256 = 3,
114   AQFINTS_CryptParams_HashAlgoSha256sha256 = 6,
115   AQFINTS_CryptParams_HashAlgoRipeMd160 = 999
116 } AQFINTS_CRYPTPARAMS_HASHALGO;
117 
118 
119 typedef enum {
120   AQFINTS_CryptParams_SignAlgoUnknown = -1,
121   AQFINTS_CryptParams_SignAlgoNone = 0,
122   AQFINTS_CryptParams_SignAlgoDes = 1,
123   AQFINTS_CryptParams_SignAlgoRsa = 10
124 } AQFINTS_CRYPTPARAMS_SIGNALGO;
125 
126 
127 typedef enum {
128   AQFINTS_CryptParams_CryptAlgoUnknown = -1,
129   AQFINTS_CryptParams_CryptAlgoNone = 0,
130   AQFINTS_CryptParams_CryptAlgoTwoKeyTripleDes = 13,
131   AQFINTS_CryptParams_CryptAlgoAes256 = 14
132 } AQFINTS_CRYPTPARAMS_CRYPTALGO;
133 
134 
135 typedef enum {
136   AQFINTS_CryptParams_SigUsageUnknown = -1,
137   AQFINTS_CryptParams_SigUsageNone = 0,
138   AQFINTS_CryptParams_SigUsageOwnerSigning = 6
139 } AQFINTS_CRYPTPARAMS_SIGUSAGE;
140 
141 
142 /* post-headers */
143 
144 
145 AQFINTS_CRYPTPARAMS_OPMODE AQFINTS_CryptParams_OpMode_fromString(const char *p_s);
146 
147 AQFINTS_CRYPTPARAMS_HASHALGO AQFINTS_CryptParams_HashAlgo_fromString(const char *p_s);
148 
149 AQFINTS_CRYPTPARAMS_SIGNALGO AQFINTS_CryptParams_SignAlgo_fromString(const char *p_s);
150 
151 AQFINTS_CRYPTPARAMS_CRYPTALGO AQFINTS_CryptParams_CryptAlgo_fromString(const char *p_s);
152 
153 AQFINTS_CRYPTPARAMS_SIGUSAGE AQFINTS_CryptParams_SigUsage_fromString(const char *p_s);
154 
155 const char *AQFINTS_CryptParams_OpMode_toString(AQFINTS_CRYPTPARAMS_OPMODE p_i);
156 
157 const char *AQFINTS_CryptParams_HashAlgo_toString(AQFINTS_CRYPTPARAMS_HASHALGO p_i);
158 
159 const char *AQFINTS_CryptParams_SignAlgo_toString(AQFINTS_CRYPTPARAMS_SIGNALGO p_i);
160 
161 const char *AQFINTS_CryptParams_CryptAlgo_toString(AQFINTS_CRYPTPARAMS_CRYPTALGO p_i);
162 
163 const char *AQFINTS_CryptParams_SigUsage_toString(AQFINTS_CRYPTPARAMS_SIGUSAGE p_i);
164 
165 /** Constructor. */
166 AQFINTS_CRYPTPARAMS *AQFINTS_CryptParams_new(void);
167 
168 /** Destructor. */
169 void AQFINTS_CryptParams_free(AQFINTS_CRYPTPARAMS *p_struct);
170 
171 AQFINTS_CRYPTPARAMS *AQFINTS_CryptParams_dup(const AQFINTS_CRYPTPARAMS *p_struct);
172 
173 AQFINTS_CRYPTPARAMS *AQFINTS_CryptParams_copy(AQFINTS_CRYPTPARAMS *p_struct, const AQFINTS_CRYPTPARAMS *p_src);
174 
175 /** Getter.
176  * Use this function to get the member "securityProfileName" (see @ref AQFINTS_CRYPTPARAMS_securityProfileName)
177 */
178 const char *AQFINTS_CryptParams_GetSecurityProfileName(const AQFINTS_CRYPTPARAMS *p_struct);
179 
180 /** Getter.
181  * Use this function to get the member "securityProfileVersion" (see @ref AQFINTS_CRYPTPARAMS_securityProfileVersion)
182 */
183 int AQFINTS_CryptParams_GetSecurityProfileVersion(const AQFINTS_CRYPTPARAMS *p_struct);
184 
185 /** Getter.
186  * Use this function to get the member "signAlgo" (see @ref AQFINTS_CRYPTPARAMS_signAlgo)
187 */
188 AQFINTS_CRYPTPARAMS_SIGNALGO AQFINTS_CryptParams_GetSignAlgo(const AQFINTS_CRYPTPARAMS *p_struct);
189 
190 /** Getter.
191  * Use this function to get the member "opModeSign" (see @ref AQFINTS_CRYPTPARAMS_opModeSign)
192 */
193 AQFINTS_CRYPTPARAMS_OPMODE AQFINTS_CryptParams_GetOpModeSign(const AQFINTS_CRYPTPARAMS *p_struct);
194 
195 /** Getter.
196  * Use this function to get the member "opModeAuth" (see @ref AQFINTS_CRYPTPARAMS_opModeAuth)
197 */
198 AQFINTS_CRYPTPARAMS_OPMODE AQFINTS_CryptParams_GetOpModeAuth(const AQFINTS_CRYPTPARAMS *p_struct);
199 
200 /** Getter.
201  * Use this function to get the member "sigUsage" (see @ref AQFINTS_CRYPTPARAMS_sigUsage)
202 */
203 AQFINTS_CRYPTPARAMS_SIGUSAGE AQFINTS_CryptParams_GetSigUsage(const AQFINTS_CRYPTPARAMS *p_struct);
204 
205 /** Getter.
206  * Use this function to get the member "hashAlgoSign" (see @ref AQFINTS_CRYPTPARAMS_hashAlgoSign)
207 */
208 AQFINTS_CRYPTPARAMS_HASHALGO AQFINTS_CryptParams_GetHashAlgoSign(const AQFINTS_CRYPTPARAMS *p_struct);
209 
210 /** Getter.
211  * Use this function to get the member "hashAlgoAuth" (see @ref AQFINTS_CRYPTPARAMS_hashAlgoAuth)
212 */
213 AQFINTS_CRYPTPARAMS_HASHALGO AQFINTS_CryptParams_GetHashAlgoAuth(const AQFINTS_CRYPTPARAMS *p_struct);
214 
215 /** Getter.
216  * Use this function to get the member "cryptAlgo" (see @ref AQFINTS_CRYPTPARAMS_cryptAlgo)
217 */
218 AQFINTS_CRYPTPARAMS_CRYPTALGO AQFINTS_CryptParams_GetCryptAlgo(const AQFINTS_CRYPTPARAMS *p_struct);
219 
220 /** Getter.
221  * Use this function to get the member "opModeCrypt" (see @ref AQFINTS_CRYPTPARAMS_opModeCrypt)
222 */
223 AQFINTS_CRYPTPARAMS_OPMODE AQFINTS_CryptParams_GetOpModeCrypt(const AQFINTS_CRYPTPARAMS *p_struct);
224 
225 /** Setter.
226  * Use this function to set the member "securityProfileName" (see @ref AQFINTS_CRYPTPARAMS_securityProfileName)
227 */
228 void AQFINTS_CryptParams_SetSecurityProfileName(AQFINTS_CRYPTPARAMS *p_struct, const char *p_src);
229 
230 /** Setter.
231  * Use this function to set the member "securityProfileVersion" (see @ref AQFINTS_CRYPTPARAMS_securityProfileVersion)
232 */
233 void AQFINTS_CryptParams_SetSecurityProfileVersion(AQFINTS_CRYPTPARAMS *p_struct, int p_src);
234 
235 /** Setter.
236  * Use this function to set the member "signAlgo" (see @ref AQFINTS_CRYPTPARAMS_signAlgo)
237 */
238 void AQFINTS_CryptParams_SetSignAlgo(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_SIGNALGO  p_src);
239 
240 /** Setter.
241  * Use this function to set the member "opModeSign" (see @ref AQFINTS_CRYPTPARAMS_opModeSign)
242 */
243 void AQFINTS_CryptParams_SetOpModeSign(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_OPMODE  p_src);
244 
245 /** Setter.
246  * Use this function to set the member "opModeAuth" (see @ref AQFINTS_CRYPTPARAMS_opModeAuth)
247 */
248 void AQFINTS_CryptParams_SetOpModeAuth(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_OPMODE  p_src);
249 
250 /** Setter.
251  * Use this function to set the member "sigUsage" (see @ref AQFINTS_CRYPTPARAMS_sigUsage)
252 */
253 void AQFINTS_CryptParams_SetSigUsage(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_SIGUSAGE  p_src);
254 
255 /** Setter.
256  * Use this function to set the member "hashAlgoSign" (see @ref AQFINTS_CRYPTPARAMS_hashAlgoSign)
257 */
258 void AQFINTS_CryptParams_SetHashAlgoSign(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_HASHALGO  p_src);
259 
260 /** Setter.
261  * Use this function to set the member "hashAlgoAuth" (see @ref AQFINTS_CRYPTPARAMS_hashAlgoAuth)
262 */
263 void AQFINTS_CryptParams_SetHashAlgoAuth(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_HASHALGO  p_src);
264 
265 /** Setter.
266  * Use this function to set the member "cryptAlgo" (see @ref AQFINTS_CRYPTPARAMS_cryptAlgo)
267 */
268 void AQFINTS_CryptParams_SetCryptAlgo(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_CRYPTALGO  p_src);
269 
270 /** Setter.
271  * Use this function to set the member "opModeCrypt" (see @ref AQFINTS_CRYPTPARAMS_opModeCrypt)
272 */
273 void AQFINTS_CryptParams_SetOpModeCrypt(AQFINTS_CRYPTPARAMS *p_struct, AQFINTS_CRYPTPARAMS_OPMODE  p_src);
274 
275 const AQFINTS_CRYPTPARAMS *AQFINTS_CryptParams_GetParamsForSecurityProfile(const char *securityProfileName,
276                                                                            int securityProfileVersion);
277 /* end-headers */
278 
279 
280 #ifdef __cplusplus
281 }
282 #endif
283 
284 #endif
285 
286