[PSDK] and [NDK]
[reactos.git] / reactos / include / psdk / bcrypt.h
1 /*
2 * Copyright (C) 2007 Francois Gouget
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 #ifndef __WINE_BCRYPT_H
20 #define __WINE_BCRYPT_H
21
22 #ifndef WINAPI
23 #define WINAPI __stdcall
24 #endif
25
26 #ifndef IN
27 #define IN
28 #endif
29
30 #ifndef OUT
31 #define OUT
32 #endif
33
34 #ifndef OPTIONAL
35 #define OPTIONAL
36 #endif
37
38 #ifndef _NTDEF_
39 typedef _Return_type_success_(return >= 0) LONG NTSTATUS;
40 typedef NTSTATUS *PNTSTATUS;
41 #endif
42
43 typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
44 {
45 LPWSTR pszName;
46 ULONG dwClass;
47 ULONG dwFlags;
48 } BCRYPT_ALGORITHM_IDENTIFIER;
49
50 typedef PVOID BCRYPT_ALG_HANDLE;
51
52 #define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001
53 #define BCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002
54
55 #endif /* __WINE_BCRYPT_H */