cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
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 
19 int derivePKCS5( STDC_UNUSED void *dummy,
22 int derivePKCS12( STDC_UNUSED void *dummy,
25 int deriveSSL( STDC_UNUSED void *dummy,
28 int deriveTLS( STDC_UNUSED void *dummy,
31 int deriveTLS12( STDC_UNUSED void *dummy,
34 int deriveCMP( STDC_UNUSED void *dummy,
37 int derivePGP( STDC_UNUSED void *dummy,
39 
41 int kdfPKCS5( STDC_UNUSED void *dummy,
43 
44 /* Signature mechanisms */
45 
47 int signPKCS1( STDC_UNUSED void *dummy,
50 int sigcheckPKCS1( STDC_UNUSED void *dummy,
53 int signSSL( STDC_UNUSED void *dummy,
56 int sigcheckSSL( STDC_UNUSED void *dummy,
58 
59 /* Public-key key wrap mechanisms */
60 
62 int exportPKCS1( STDC_UNUSED void *dummy,
65 int exportPKCS1PGP( STDC_UNUSED void *dummy,
68 int importPKCS1( STDC_UNUSED void *dummy,
71 int importPKCS1PGP( STDC_UNUSED void *dummy,
74 int exportOAEP( STDC_UNUSED void *dummy,
77 int importOAEP( STDC_UNUSED void *dummy,
79 
80 /* Symmetric key wrap mechanisms */
81 
83 int exportCMS( STDC_UNUSED void *dummy,
86 int importCMS( STDC_UNUSED void *dummy,
88 
89 /* Private key export mechanisms */
90 
92 int exportPrivateKey( STDC_UNUSED void *dummy,
95 int importPrivateKey( STDC_UNUSED void *dummy,
98 int exportPrivateKeyPKCS8( STDC_UNUSED void *dummy,
101 int importPrivateKeyPKCS8( STDC_UNUSED void *dummy,
104 int importPrivateKeyPGP2( STDC_UNUSED void *dummy,
107 int importPrivateKeyOpenPGPOld( STDC_UNUSED void *dummy,
110 int importPrivateKeyOpenPGP( STDC_UNUSED void *dummy,
112 
113 #endif /* _DEVMECH_DEFINED */