cryptlib
3.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
mechs
dev_mech.h
Go to the documentation of this file.
1
/****************************************************************************
2
* *
3
* cryptlib Device Mechanism Header File *
4
* Copyright Peter Gutmann 1992-2009 *
5
* *
6
****************************************************************************/
7
8
/* Prototypes for crypto mechanism functions supported by various devices.
9
These are cryptlib-native mechanisms, some devices override these with
10
device-specific implementations */
11
12
#ifndef _DEVMECH_DEFINED
13
14
#define _DEVMECH_DEFINED
15
16
/* Key derivation mechanisms */
17
18
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
19
int derivePKCS5(
STDC_UNUSED
void
*
dummy
,
20
INOUT
MECHANISM_DERIVE_INFO
*
mechanismInfo
);
21
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
22
int derivePKCS12(
STDC_UNUSED
void
*
dummy
,
23
INOUT
MECHANISM_DERIVE_INFO
*
mechanismInfo
);
24
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
25
int deriveSSL(
STDC_UNUSED
void
*
dummy
,
26
INOUT
MECHANISM_DERIVE_INFO
*
mechanismInfo
);
27
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
28
int deriveTLS(
STDC_UNUSED
void
*
dummy
,
29
INOUT
MECHANISM_DERIVE_INFO
*
mechanismInfo
);
30
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
31
int deriveTLS12(
STDC_UNUSED
void
*
dummy
,
32
INOUT
MECHANISM_DERIVE_INFO
*
mechanismInfo
);
33
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
34
int deriveCMP(
STDC_UNUSED
void
*
dummy
,
35
INOUT
MECHANISM_DERIVE_INFO
*
mechanismInfo
);
36
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
37
int derivePGP(
STDC_UNUSED
void
*
dummy
,
38
INOUT
MECHANISM_DERIVE_INFO
*
mechanismInfo
);
39
40
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
41
int kdfPKCS5(
STDC_UNUSED
void
*
dummy
,
42
INOUT
MECHANISM_KDF_INFO
*
mechanismInfo
);
43
44
/* Signature mechanisms */
45
46
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
47
int signPKCS1(
STDC_UNUSED
void
*
dummy
,
48
INOUT
MECHANISM_SIGN_INFO
*
mechanismInfo
);
49
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
50
int sigcheckPKCS1(
STDC_UNUSED
void
*
dummy
,
51
INOUT
MECHANISM_SIGN_INFO
*
mechanismInfo
);
52
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
53
int signSSL(
STDC_UNUSED
void
*
dummy
,
54
INOUT
MECHANISM_SIGN_INFO
*
mechanismInfo
);
55
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
56
int sigcheckSSL(
STDC_UNUSED
void
*
dummy
,
57
INOUT
MECHANISM_SIGN_INFO
*
mechanismInfo
);
58
59
/* Public-key key wrap mechanisms */
60
61
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
62
int exportPKCS1(
STDC_UNUSED
void
*
dummy
,
63
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
64
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
65
int exportPKCS1PGP(
STDC_UNUSED
void
*
dummy
,
66
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
67
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
68
int importPKCS1(
STDC_UNUSED
void
*
dummy
,
69
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
70
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
71
int importPKCS1PGP(
STDC_UNUSED
void
*
dummy
,
72
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
73
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
74
int exportOAEP(
STDC_UNUSED
void
*
dummy
,
75
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
76
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
77
int importOAEP(
STDC_UNUSED
void
*
dummy
,
78
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
79
80
/* Symmetric key wrap mechanisms */
81
82
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
83
int exportCMS(
STDC_UNUSED
void
*
dummy
,
84
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
85
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
86
int importCMS(
STDC_UNUSED
void
*
dummy
,
87
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
88
89
/* Private key export mechanisms */
90
91
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
92
int exportPrivateKey(
STDC_UNUSED
void
*
dummy
,
93
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
94
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
95
int importPrivateKey(
STDC_UNUSED
void
*
dummy
,
96
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
97
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
98
int exportPrivateKeyPKCS8(
STDC_UNUSED
void
*
dummy
,
99
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
100
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
101
int importPrivateKeyPKCS8(
STDC_UNUSED
void
*
dummy
,
102
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
103
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
104
int importPrivateKeyPGP2(
STDC_UNUSED
void
*
dummy
,
105
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
106
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
107
int importPrivateKeyOpenPGPOld(
STDC_UNUSED
void
*
dummy
,
108
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
109
CHECK_RETVAL
STDC_NONNULL_ARG
( ( 2 ) ) \
110
int importPrivateKeyOpenPGP(
STDC_UNUSED
void
*
dummy
,
111
INOUT
MECHANISM_WRAP_INFO
*
mechanismInfo
);
112
113
#endif
/* _DEVMECH_DEFINED */
Generated on Thu Jan 10 2013 10:00:50 for cryptlib by
1.8.2