httpapi: Add stub for HttpReceiveRequestEntityBody.
[wine/zf.git] / include / bcrypt.h
blob4546aea394c1a1ea24df8b1feb62643965ce5394
1 /*
2 * Copyright (C) 2007 Francois Gouget
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.
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.
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
19 #ifndef __WINE_BCRYPT_H
20 #define __WINE_BCRYPT_H
22 #ifndef WINAPI
23 #define WINAPI __stdcall
24 #endif
26 #ifndef IN
27 #define IN
28 #endif
30 #ifndef OUT
31 #define OUT
32 #endif
34 #ifndef OPTIONAL
35 #define OPTIONAL
36 #endif
38 #ifndef WINE_NTSTATUS_DECLARED
39 #define WINE_NTSTATUS_DECLARED
40 typedef LONG NTSTATUS;
41 #endif
43 #if defined(_MSC_VER) || defined(__MINGW32__)
44 #define BCRYPT_ALGORITHM_NAME L"AlgorithmName"
45 #define BCRYPT_AUTH_TAG_LENGTH L"AuthTagLength"
46 #define BCRYPT_BLOCK_LENGTH L"BlockLength"
47 #define BCRYPT_BLOCK_SIZE_LIST L"BlockSizeList"
48 #define BCRYPT_CHAINING_MODE L"ChainingMode"
49 #define BCRYPT_EFFECTIVE_KEY_LENGTH L"EffectiveKeyLength"
50 #define BCRYPT_HASH_BLOCK_LENGTH L"HashBlockLength"
51 #define BCRYPT_HASH_LENGTH L"HashDigestLength"
52 #define BCRYPT_HASH_OID_LIST L"HashOIDList"
53 #define BCRYPT_KEY_LENGTH L"KeyLength"
54 #define BCRYPT_KEY_LENGTHS L"KeyLengths"
55 #define BCRYPT_KEY_OBJECT_LENGTH L"KeyObjectLength"
56 #define BCRYPT_KEY_STRENGTH L"KeyStrength"
57 #define BCRYPT_OBJECT_LENGTH L"ObjectLength"
58 #define BCRYPT_PADDING_SCHEMES L"PaddingSchemes"
59 #define BCRYPT_PROVIDER_HANDLE L"ProviderHandle"
60 #define BCRYPT_SIGNATURE_LENGTH L"SignatureLength"
62 #define BCRYPT_OPAQUE_KEY_BLOB L"OpaqueKeyBlob"
63 #define BCRYPT_KEY_DATA_BLOB L"KeyDataBlob"
64 #define BCRYPT_AES_WRAP_KEY_BLOB L"Rfc3565KeyWrapBlob"
65 #define BCRYPT_ECCPUBLIC_BLOB L"ECCPUBLICBLOB"
66 #define BCRYPT_ECCPRIVATE_BLOB L"ECCPRIVATEBLOB"
67 #define BCRYPT_RSAPUBLIC_BLOB L"RSAPUBLICBLOB"
68 #define BCRYPT_RSAPRIVATE_BLOB L"RSAPRIVATEBLOB"
70 #define MS_PRIMITIVE_PROVIDER L"Microsoft Primitive Provider"
71 #define MS_PLATFORM_CRYPTO_PROVIDER L"Microsoft Platform Crypto Provider"
73 #define BCRYPT_AES_ALGORITHM L"AES"
74 #define BCRYPT_MD2_ALGORITHM L"MD2"
75 #define BCRYPT_MD4_ALGORITHM L"MD4"
76 #define BCRYPT_MD5_ALGORITHM L"MD5"
77 #define BCRYPT_RNG_ALGORITHM L"RNG"
78 #define BCRYPT_RSA_ALGORITHM L"RSA"
79 #define BCRYPT_RSA_SIGN_ALGORITHM L"RSA_SIGN"
80 #define BCRYPT_SHA1_ALGORITHM L"SHA1"
81 #define BCRYPT_SHA256_ALGORITHM L"SHA256"
82 #define BCRYPT_SHA384_ALGORITHM L"SHA384"
83 #define BCRYPT_SHA512_ALGORITHM L"SHA512"
84 #define BCRYPT_ECDH_P256_ALGORITHM L"ECDH_P256"
85 #define BCRYPT_ECDSA_P256_ALGORITHM L"ECDSA_P256"
86 #define BCRYPT_ECDSA_P384_ALGORITHM L"ECDSA_P384"
87 #define BCRYPT_ECDSA_P521_ALGORITHM L"ECDSA_P521"
89 #define BCRYPT_CHAIN_MODE_NA L"ChainingModeN/A"
90 #define BCRYPT_CHAIN_MODE_CBC L"ChainingModeCBC"
91 #define BCRYPT_CHAIN_MODE_ECB L"ChainingModeECB"
92 #define BCRYPT_CHAIN_MODE_CFB L"ChainingModeCFB"
93 #define BCRYPT_CHAIN_MODE_CCM L"ChainingModeCCM"
94 #define BCRYPT_CHAIN_MODE_GCM L"ChainingModeGCM"
95 #else
96 static const WCHAR BCRYPT_ALGORITHM_NAME[] = {'A','l','g','o','r','i','t','h','m','N','a','m','e',0};
97 static const WCHAR BCRYPT_AUTH_TAG_LENGTH[] = {'A','u','t','h','T','a','g','L','e','n','g','t','h',0};
98 static const WCHAR BCRYPT_BLOCK_LENGTH[] = {'B','l','o','c','k','L','e','n','g','t','h',0};
99 static const WCHAR BCRYPT_BLOCK_SIZE_LIST[] = {'B','l','o','c','k','S','i','z','e','L','i','s','t',0};
100 static const WCHAR BCRYPT_CHAINING_MODE[] = {'C','h','a','i','n','i','n','g','M','o','d','e',0};
101 static const WCHAR BCRYPT_EFFECTIVE_KEY_LENGTH[] = {'E','f','f','e','c','t','i','v','e','K','e','y','L','e','n','g','t','h',0};
102 static const WCHAR BCRYPT_HASH_BLOCK_LENGTH[] = {'H','a','s','h','B','l','o','c','k','L','e','n','g','t','h',0};
103 static const WCHAR BCRYPT_HASH_LENGTH[] = {'H','a','s','h','D','i','g','e','s','t','L','e','n','g','t','h',0};
104 static const WCHAR BCRYPT_HASH_OID_LIST[] = {'H','a','s','h','O','I','D','L','i','s','t',0};
105 static const WCHAR BCRYPT_KEY_LENGTH[] = {'K','e','y','L','e','n','g','t','h',0};
106 static const WCHAR BCRYPT_KEY_LENGTHS[] = {'K','e','y','L','e','n','g','t','h','s',0};
107 static const WCHAR BCRYPT_KEY_OBJECT_LENGTH[] = {'K','e','y','O','b','j','e','c','t','L','e','n','g','t','h',0};
108 static const WCHAR BCRYPT_KEY_STRENGTH[] = {'K','e','y','S','t','r','e','n','g','t','h',0};
109 static const WCHAR BCRYPT_OBJECT_LENGTH[] = {'O','b','j','e','c','t','L','e','n','g','t','h',0};
110 static const WCHAR BCRYPT_PADDING_SCHEMES[] = {'P','a','d','d','i','n','g','S','c','h','e','m','e','s',0};
111 static const WCHAR BCRYPT_PROVIDER_HANDLE[] = {'P','r','o','v','i','d','e','r','H','a','n','d','l','e',0};
112 static const WCHAR BCRYPT_SIGNATURE_LENGTH[] = {'S','i','g','n','a','t','u','r','e','L','e','n','g','t','h',0};
114 static const WCHAR BCRYPT_OPAQUE_KEY_BLOB[] = {'O','p','a','q','u','e','K','e','y','B','l','o','b',0};
115 static const WCHAR BCRYPT_KEY_DATA_BLOB[] = {'K','e','y','D','a','t','a','B','l','o','b',0};
116 static const WCHAR BCRYPT_AES_WRAP_KEY_BLOB[] = {'R','f','c','3','5','6','5','K','e','y','W','r','a','p','B','l','o','b',0};
117 static const WCHAR BCRYPT_ECCPUBLIC_BLOB[] = {'E','C','C','P','U','B','L','I','C','B','L','O','B',0};
118 static const WCHAR BCRYPT_ECCPRIVATE_BLOB[] = {'E','C','C','P','R','I','V','A','T','E','B','L','O','B',0};
119 static const WCHAR BCRYPT_RSAPUBLIC_BLOB[] = {'R','S','A','P','U','B','L','I','C','B','L','O','B',0};
120 static const WCHAR BCRYPT_RSAPRIVATE_BLOB[] = {'R','S','A','P','R','I','V','A','T','E','B','L','O','B',0};
122 static const WCHAR MS_PRIMITIVE_PROVIDER[] = \
123 {'M','i','c','r','o','s','o','f','t',' ','P','r','i','m','i','t','i','v','e',' ','P','r','o','v','i','d','e','r',0};
124 static const WCHAR MS_PLATFORM_CRYPTO_PROVIDER[] = \
125 {'M','i','c','r','o','s','o','f','t',' ','P','l','a','t','f','o','r','m',' ','C','r','y','p','t','o',' ','P','r','o','v','i','d','e','r',0};
127 static const WCHAR BCRYPT_AES_ALGORITHM[] = {'A','E','S',0};
128 static const WCHAR BCRYPT_MD2_ALGORITHM[] = {'M','D','2',0};
129 static const WCHAR BCRYPT_MD4_ALGORITHM[] = {'M','D','4',0};
130 static const WCHAR BCRYPT_MD5_ALGORITHM[] = {'M','D','5',0};
131 static const WCHAR BCRYPT_RNG_ALGORITHM[] = {'R','N','G',0};
132 static const WCHAR BCRYPT_RSA_ALGORITHM[] = {'R','S','A',0};
133 static const WCHAR BCRYPT_RSA_SIGN_ALGORITHM[] = {'R','S','A','_','S','I','G','N',0};
134 static const WCHAR BCRYPT_SHA1_ALGORITHM[] = {'S','H','A','1',0};
135 static const WCHAR BCRYPT_SHA256_ALGORITHM[] = {'S','H','A','2','5','6',0};
136 static const WCHAR BCRYPT_SHA384_ALGORITHM[] = {'S','H','A','3','8','4',0};
137 static const WCHAR BCRYPT_SHA512_ALGORITHM[] = {'S','H','A','5','1','2',0};
138 static const WCHAR BCRYPT_ECDH_P256_ALGORITHM[] = {'E','C','D','H','_','P','2','5','6',0};
139 static const WCHAR BCRYPT_ECDSA_P256_ALGORITHM[] = {'E','C','D','S','A','_','P','2','5','6',0};
140 static const WCHAR BCRYPT_ECDSA_P384_ALGORITHM[] = {'E','C','D','S','A','_','P','3','8','4',0};
141 static const WCHAR BCRYPT_ECDSA_P521_ALGORITHM[] = {'E','C','D','S','A','_','P','5','2','1',0};
143 static const WCHAR BCRYPT_CHAIN_MODE_NA[] = {'C','h','a','i','n','i','n','g','M','o','d','e','N','/','A',0};
144 static const WCHAR BCRYPT_CHAIN_MODE_CBC[] = {'C','h','a','i','n','i','n','g','M','o','d','e','C','B','C',0};
145 static const WCHAR BCRYPT_CHAIN_MODE_ECB[] = {'C','h','a','i','n','i','n','g','M','o','d','e','E','C','B',0};
146 static const WCHAR BCRYPT_CHAIN_MODE_CFB[] = {'C','h','a','i','n','i','n','g','M','o','d','e','C','F','B',0};
147 static const WCHAR BCRYPT_CHAIN_MODE_CCM[] = {'C','h','a','i','n','i','n','g','M','o','d','e','C','C','M',0};
148 static const WCHAR BCRYPT_CHAIN_MODE_GCM[] = {'C','h','a','i','n','i','n','g','M','o','d','e','G','C','M',0};
149 #endif
151 #define BCRYPT_ECDSA_PUBLIC_P256_MAGIC 0x31534345
152 #define BCRYPT_ECDSA_PRIVATE_P256_MAGIC 0x32534345
153 #define BCRYPT_ECDSA_PUBLIC_P384_MAGIC 0x33534345
154 #define BCRYPT_ECDSA_PRIVATE_P384_MAGIC 0x34534345
155 #define BCRYPT_ECDSA_PUBLIC_P521_MAGIC 0x35534345
156 #define BCRYPT_ECDSA_PRIVATE_P521_MAGIC 0x36534345
158 #define BCRYPT_ECDH_PUBLIC_P256_MAGIC 0x314b4345
159 #define BCRYPT_ECDH_PRIVATE_P256_MAGIC 0x324b4345
160 #define BCRYPT_ECDH_PUBLIC_P384_MAGIC 0x334b4345
161 #define BCRYPT_ECDH_PRIVATE_P384_MAGIC 0x344b4345
162 #define BCRYPT_ECDH_PUBLIC_P521_MAGIC 0x354b4345
163 #define BCRYPT_ECDH_PRIVATE_P521_MAGIC 0x364b4345
165 #define BCRYPT_CIPHER_OPERATION 0x00000001
166 #define BCRYPT_HASH_OPERATION 0x00000002
167 #define BCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION 0x00000004
168 #define BCRYPT_SECRET_AGREEMENT_OPERATION 0x00000008
169 #define BCRYPT_SIGNATURE_OPERATION 0x00000010
170 #define BCRYPT_RNG_OPERATION 0x00000020
172 #define BCRYPT_CIPHER_INTERFACE 0x00000001
173 #define BCRYPT_HASH_INTERFACE 0x00000002
174 #define BCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE 0x00000003
175 #define BCRYPT_SECRET_AGREEMENT_INTERFACE 0x00000004
176 #define BCRYPT_SIGNATURE_INTERFACE 0x00000005
177 #define BCRYPT_RNG_INTERFACE 0x00000006
178 #define BCRYPT_KEY_DERIVATION_INTERFACE 0x00000007
180 typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
182 LPWSTR pszName;
183 ULONG dwClass;
184 ULONG dwFlags;
185 } BCRYPT_ALGORITHM_IDENTIFIER;
187 typedef struct __BCRYPT_KEY_LENGTHS_STRUCT
189 ULONG dwMinLength;
190 ULONG dwMaxLength;
191 ULONG dwIncrement;
192 } BCRYPT_KEY_LENGTHS_STRUCT, BCRYPT_AUTH_TAG_LENGTHS_STRUCT;
194 typedef struct _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO
196 ULONG cbSize;
197 ULONG dwInfoVersion;
198 UCHAR *pbNonce;
199 ULONG cbNonce;
200 UCHAR *pbAuthData;
201 ULONG cbAuthData;
202 UCHAR *pbTag;
203 ULONG cbTag;
204 UCHAR *pbMacContext;
205 ULONG cbMacContext;
206 ULONG cbAAD;
207 ULONGLONG cbData;
208 ULONG dwFlags;
209 } BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO, *PBCRYPT_AUTHENTICATED_CIPHER_MODE_INFO;
211 typedef struct _BCRYPT_ECCKEY_BLOB
213 ULONG dwMagic;
214 ULONG cbKey;
215 } BCRYPT_ECCKEY_BLOB, *PBCRYPT_ECCKEY_BLOB;
217 #define BCRYPT_RSAPUBLIC_MAGIC 0x31415352
218 #define BCRYPT_RSAPRIVATE_MAGIC 0x32415352
219 #define BCRYPT_RSAFULLPRIVATE_MAGIC 0x33415352
221 typedef struct _BCRYPT_RSAKEY_BLOB
223 ULONG Magic;
224 ULONG BitLength;
225 ULONG cbPublicExp;
226 ULONG cbModulus;
227 ULONG cbPrime1;
228 ULONG cbPrime2;
229 } BCRYPT_RSAKEY_BLOB;
231 typedef struct _BCRYPT_PKCS1_PADDING_INFO
233 LPCWSTR pszAlgId;
234 } BCRYPT_PKCS1_PADDING_INFO;
236 #define BCRYPT_PAD_NONE 0x00000001
237 #define BCRYPT_PAD_PKCS1 0x00000002
238 #define BCRYPT_PAD_OAEP 0x00000004
239 #define BCRYPT_PAD_PSS 0x00000008
240 #define BCRYPT_PAD_PKCS1_OPTIONAL_HASH_OID 0x00000010
242 #define BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_VERSION 1
244 #define BCRYPT_AUTH_MODE_CHAIN_CALLS_FLAG 0x00000001
245 #define BCRYPT_AUTH_MODE_IN_PROGRESS_FLAG 0x00000002
247 typedef struct _CRYPT_INTERFACE_REG
249 ULONG dwInterface;
250 ULONG dwFlags;
251 ULONG cFunctions;
252 PWSTR *rgpszFunctions;
253 } CRYPT_INTERFACE_REG, *PCRYPT_INTERFACE_REG;
255 typedef struct _CRYPT_IMAGE_REG
257 PWSTR pszImage;
258 ULONG cInterfaces;
259 PCRYPT_INTERFACE_REG *rgpInterfaces;
260 } CRYPT_IMAGE_REG, *PCRYPT_IMAGE_REG;
262 typedef struct _CRYPT_PROVIDER_REG
264 ULONG cAliases;
265 PWSTR *rgpszAliases;
266 PCRYPT_IMAGE_REG pUM;
267 PCRYPT_IMAGE_REG pKM;
268 } CRYPT_PROVIDER_REG, *PCRYPT_PROVIDER_REG;
270 typedef struct _BCRYPT_KEY_DATA_BLOB_HEADER
272 ULONG dwMagic;
273 ULONG dwVersion;
274 ULONG cbKeyData;
275 } BCRYPT_KEY_DATA_BLOB_HEADER, *PBCRYPT_KEY_DATA_BLOB_HEADER;
277 typedef struct _BCryptBuffer
279 ULONG cbBuffer;
280 ULONG BufferType;
281 void *pvBuffer;
282 } BCryptBuffer, *PBCryptBuffer;
284 typedef struct _BCryptBufferDesc
286 ULONG ulVersion;
287 ULONG cBuffers;
288 PBCryptBuffer pBuffers;
289 } BCryptBufferDesc, *PBCryptBufferDesc;
291 #define BCRYPT_KEY_DATA_BLOB_MAGIC 0x4d42444b
292 #define BCRYPT_KEY_DATA_BLOB_VERSION1 1
294 typedef PVOID BCRYPT_ALG_HANDLE;
295 typedef PVOID BCRYPT_KEY_HANDLE;
296 typedef PVOID BCRYPT_HANDLE;
297 typedef PVOID BCRYPT_HASH_HANDLE;
298 typedef PVOID BCRYPT_SECRET_HANDLE;
300 /* Flags for BCryptGenRandom */
301 #define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001
302 #define BCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002
304 /* Flags for BCryptOpenAlgorithmProvider */
305 #define BCRYPT_ALG_HANDLE_HMAC_FLAG 0x00000008
307 /* Flags for BCryptEncrypt/BCryptDecrypt */
308 #define BCRYPT_BLOCK_PADDING 0x00000001
310 /* Flags for BCryptCreateHash */
311 #define BCRYPT_HASH_REUSABLE_FLAG 0x00000020
313 #define CRYPT_LOCAL 0x00000001
314 #define CRYPT_DOMAIN 0x00000002
316 typedef struct _CRYPT_CONTEXT_FUNCTIONS
318 ULONG cFunctions;
319 WCHAR **rgpszFunctions;
320 } CRYPT_CONTEXT_FUNCTIONS, *PCRYPT_CONTEXT_FUNCTIONS;
322 NTSTATUS WINAPI BCryptAddContextFunction(ULONG, LPCWSTR, ULONG, LPCWSTR, ULONG);
323 NTSTATUS WINAPI BCryptCloseAlgorithmProvider(BCRYPT_ALG_HANDLE, ULONG);
324 NTSTATUS WINAPI BCryptCreateHash(BCRYPT_ALG_HANDLE, BCRYPT_HASH_HANDLE *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG);
325 NTSTATUS WINAPI BCryptDecrypt(BCRYPT_KEY_HANDLE, PUCHAR, ULONG, VOID *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG *, ULONG);
326 NTSTATUS WINAPI BCryptDeriveKey(BCRYPT_SECRET_HANDLE, LPCWSTR, BCryptBufferDesc*, PUCHAR, ULONG, ULONG *, ULONG);
327 NTSTATUS WINAPI BCryptDeriveKeyPBKDF2(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, PUCHAR, ULONG, ULONGLONG, PUCHAR, ULONG, ULONG);
328 NTSTATUS WINAPI BCryptDestroyHash(BCRYPT_HASH_HANDLE);
329 NTSTATUS WINAPI BCryptDestroyKey(BCRYPT_KEY_HANDLE);
330 NTSTATUS WINAPI BCryptDestroySecret(BCRYPT_SECRET_HANDLE);
331 NTSTATUS WINAPI BCryptDuplicateHash(BCRYPT_HASH_HANDLE, BCRYPT_HASH_HANDLE *, UCHAR *, ULONG, ULONG);
332 NTSTATUS WINAPI BCryptDuplicateKey(BCRYPT_KEY_HANDLE, BCRYPT_KEY_HANDLE *, PUCHAR, ULONG, ULONG);
333 NTSTATUS WINAPI BCryptEncrypt(BCRYPT_KEY_HANDLE, PUCHAR, ULONG, VOID *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG *, ULONG);
334 NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG, ULONG *, BCRYPT_ALGORITHM_IDENTIFIER **, ULONG);
335 NTSTATUS WINAPI BCryptEnumContextFunctions(ULONG, const WCHAR *, ULONG, ULONG *, CRYPT_CONTEXT_FUNCTIONS **);
336 NTSTATUS WINAPI BCryptExportKey(BCRYPT_KEY_HANDLE, BCRYPT_KEY_HANDLE, LPCWSTR, PUCHAR, ULONG, ULONG *, ULONG);
337 NTSTATUS WINAPI BCryptFinalizeKeyPair(BCRYPT_KEY_HANDLE, ULONG);
338 NTSTATUS WINAPI BCryptFinishHash(BCRYPT_HASH_HANDLE, PUCHAR, ULONG, ULONG);
339 void WINAPI BCryptFreeBuffer(void *);
340 NTSTATUS WINAPI BCryptGenRandom(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, ULONG);
341 NTSTATUS WINAPI BCryptGenerateKeyPair(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE *, ULONG, ULONG);
342 NTSTATUS WINAPI BCryptGenerateSymmetricKey(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG);
343 NTSTATUS WINAPI BCryptGetFipsAlgorithmMode(BOOLEAN *);
344 NTSTATUS WINAPI BCryptGetProperty(BCRYPT_HANDLE, LPCWSTR, PUCHAR, ULONG, ULONG *, ULONG);
345 NTSTATUS WINAPI BCryptHash(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, PUCHAR, ULONG, PUCHAR, ULONG);
346 NTSTATUS WINAPI BCryptHashData(BCRYPT_HASH_HANDLE, PUCHAR, ULONG, ULONG);
347 NTSTATUS WINAPI BCryptImportKey(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE, LPCWSTR, BCRYPT_KEY_HANDLE *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG);
348 NTSTATUS WINAPI BCryptImportKeyPair(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE, LPCWSTR, BCRYPT_KEY_HANDLE *, UCHAR *, ULONG, ULONG);
349 NTSTATUS WINAPI BCryptOpenAlgorithmProvider(BCRYPT_ALG_HANDLE *, LPCWSTR, LPCWSTR, ULONG);
350 NTSTATUS WINAPI BCryptRemoveContextFunction(ULONG, LPCWSTR, ULONG, LPCWSTR);
351 NTSTATUS WINAPI BCryptSecretAgreement(BCRYPT_KEY_HANDLE, BCRYPT_KEY_HANDLE, BCRYPT_SECRET_HANDLE *, ULONG);
352 NTSTATUS WINAPI BCryptSetProperty(BCRYPT_HANDLE, LPCWSTR, PUCHAR, ULONG, ULONG);
353 NTSTATUS WINAPI BCryptSignHash(BCRYPT_KEY_HANDLE, void *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG *, ULONG);
354 NTSTATUS WINAPI BCryptVerifySignature(BCRYPT_KEY_HANDLE, void *, UCHAR *, ULONG, UCHAR *, ULONG, ULONG);
356 #endif /* __WINE_BCRYPT_H */