/[winpt]/trunk/Include/wptCrypto.h
ViewVC logotype

Contents of /trunk/Include/wptCrypto.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 37 - (show annotations)
Thu Oct 27 19:12:40 2005 UTC (19 years, 4 months ago) by werner
File MIME type: text/plain
File size: 1890 byte(s)
Added 2 dummy files, chnaged eol-style property

1 /* wptCrypto.h
2
3 * Copyright (C) 2005 Timo Schulz
4
5 *
6
7 * This file is part of WinPT.
8
9 *
10
11 * WinPT is free software; you can redistribute it and/or modify
12
13 * it under the terms of the GNU General Public License as published by
14
15 * the Free Software Foundation; either version 2 of the License, or
16
17 * (at your option) any later version.
18
19 *
20
21 * WinPT is distributed in the hope that it will be useful,
22
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
27 * GNU General Public License for more details.
28
29 *
30
31 * You should have received a copy of the GNU General Public License
32
33 * along with WinPT; if not, write to the Free Software Foundation,
34
35 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
36
37 */
38
39 #ifndef WPT_CRYPTO_H
40
41 #define WPT_CRYPTO_H
42
43
44
45 /* Available wipe modes. */
46
47 enum wipe_mode_t {
48
49 WIPE_MODE_SIMPLE = 0, /* 2 random passes */
50
51 WIPE_MODE_DOD = 1,
52
53 WIPE_MODE_GUTMANN = 2,
54
55 WIPE_MODE_FAST = 3, /* 1 random pass */
56
57 };
58
59
60
61 /* Possible PGP message types. */
62
63 enum pgp_type_t {
64
65 PGP_NONE = 0,
66
67 PGP_MESSAGE = 1,
68
69 PGP_CLEARSIG = 2,
70
71 PGP_SIG = 4,
72
73 PGP_PUBKEY = 8,
74
75 PGP_SECKEY = 16,
76
77 PGP_DASH_ESCAPED = 32 /* actually not a type, just a flag */
78
79 };
80
81
82
83 #ifdef __cplusplus
84
85 extern "C" {
86
87 #endif
88
89
90
91 int gpg_md_hash_file (int mdalgo, const char *file, byte *digest, size_t *nlen);
92
93 int gpg_md_selftest (void);
94
95
96
97 #ifdef __cplusplus
98
99 }
100
101 #endif
102
103
104
105 int rename_unlink (const char *path);
106
107 int secure_unlink (const char *path, const int mode);
108
109 void secure_unlink_set_cb (void (*cb)(void *, const char *, int, int, int),
110
111 void *cb_value);
112
113 int wipe_freespace (const char * drive, HANDLE *r_fd,
114
115 void (*cb)(void *, unsigned __int64, unsigned __int64),
116
117 void * cb_value);
118
119
120
121 #endif /*WPT_CRYPTO_H*/
122

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26