ReactOS
0.4.17-dev-1037-g720d112
ncrypt_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Santino Mazza
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
#include <
bcrypt.h
>
20
21
enum
algid
22
{
23
/* symmetric */
24
AES
,
25
/* asymmetric */
26
RSA
,
27
DSA
,
28
ECDSA
,
29
ECDSA_P256
,
30
};
31
32
struct
key
33
{
34
enum
algid
algid
;
35
BCRYPT_KEY_HANDLE
bcrypt_key
;
36
};
37
38
struct
storage_provider
39
{
40
#ifdef __REACTOS__
41
BYTE
unused
;
/* mutes error C2016: C requires that a struct or union have at least one member */
42
#endif
43
};
44
45
enum
object_type
46
{
47
KEY
,
48
STORAGE_PROVIDER
,
49
};
50
51
struct
object_property
52
{
53
WCHAR
*
key
;
54
DWORD
value_size
;
55
void
*
value
;
56
};
57
58
struct
object
59
{
60
enum
object_type
type
;
61
LONG
refs
;
62
DWORD
num_properties
;
63
struct
object_property
*
properties
;
64
union
65
{
66
struct
key
key
;
67
struct
storage_provider
storage_provider
;
68
};
69
};
bcrypt.h
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
unused
WORD unused[29]
Definition:
crypt.c:1298
algid
algid
Definition:
ncrypt_internal.h:22
ECDSA
@ ECDSA
Definition:
ncrypt_internal.h:28
AES
@ AES
Definition:
ncrypt_internal.h:24
ECDSA_P256
@ ECDSA_P256
Definition:
ncrypt_internal.h:29
DSA
@ DSA
Definition:
ncrypt_internal.h:27
RSA
@ RSA
Definition:
ncrypt_internal.h:26
object_type
object_type
Definition:
ncrypt_internal.h:46
KEY
@ KEY
Definition:
ncrypt_internal.h:47
STORAGE_PROVIDER
@ STORAGE_PROVIDER
Definition:
ncrypt_internal.h:48
WCHAR
short WCHAR
Definition:
pedump.c:58
LONG
long LONG
Definition:
pedump.c:60
key
Definition:
copy.c:22
key::bcrypt_key
BCRYPT_KEY_HANDLE bcrypt_key
Definition:
ncrypt_internal.h:35
key::algid
enum algid algid
Definition:
ncrypt_internal.h:34
object_property
Definition:
ncrypt_internal.h:52
object_property::key
WCHAR * key
Definition:
ncrypt_internal.h:53
object_property::value_size
DWORD value_size
Definition:
ncrypt_internal.h:54
object_property::value
void * value
Definition:
ncrypt_internal.h:55
object
Definition:
bcrypt_main.c:50
object::properties
struct object_property * properties
Definition:
ncrypt_internal.h:63
object::num_properties
DWORD num_properties
Definition:
ncrypt_internal.h:62
object::type
enum object_type type
Definition:
ncrypt_internal.h:60
object::refs
LONG refs
Definition:
ncrypt_internal.h:61
storage_provider
Definition:
ncrypt_internal.h:39
BYTE
unsigned char BYTE
Definition:
xxhash.c:193
dll
win32
ncrypt
ncrypt_internal.h
Generated on Sat Oct 10 2026 06:06:32 for ReactOS by
1.9.6