2007-08-31 00:31:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007 Francois Gouget
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_BCRYPT_H
|
|
|
|
#define __WINE_BCRYPT_H
|
|
|
|
|
|
|
|
#ifndef WINAPI
|
|
|
|
#define WINAPI __stdcall
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef IN
|
|
|
|
#define IN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OUT
|
|
|
|
#define OUT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPTIONAL
|
|
|
|
#define OPTIONAL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WINE_NTSTATUS_DECLARED
|
|
|
|
#define WINE_NTSTATUS_DECLARED
|
|
|
|
typedef LONG NTSTATUS;
|
|
|
|
#endif
|
|
|
|
|
2019-06-10 08:57:32 +00:00
|
|
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
|
|
|
#define BCRYPT_ALGORITHM_NAME L"AlgorithmName"
|
|
|
|
#define BCRYPT_AUTH_TAG_LENGTH L"AuthTagLength"
|
|
|
|
#define BCRYPT_BLOCK_LENGTH L"BlockLength"
|
|
|
|
#define BCRYPT_BLOCK_SIZE_LIST L"BlockSizeList"
|
|
|
|
#define BCRYPT_CHAINING_MODE L"ChainingMode"
|
|
|
|
#define BCRYPT_EFFECTIVE_KEY_LENGTH L"EffectiveKeyLength"
|
|
|
|
#define BCRYPT_HASH_BLOCK_LENGTH L"HashBlockLength"
|
|
|
|
#define BCRYPT_HASH_LENGTH L"HashDigestLength"
|
|
|
|
#define BCRYPT_HASH_OID_LIST L"HashOIDList"
|
|
|
|
#define BCRYPT_KEY_LENGTH L"KeyLength"
|
|
|
|
#define BCRYPT_KEY_LENGTHS L"KeyLengths"
|
|
|
|
#define BCRYPT_KEY_OBJECT_LENGTH L"KeyObjectLength"
|
|
|
|
#define BCRYPT_KEY_STRENGTH L"KeyStrength"
|
|
|
|
#define BCRYPT_OBJECT_LENGTH L"ObjectLength"
|
|
|
|
#define BCRYPT_PADDING_SCHEMES L"PaddingSchemes"
|
|
|
|
#define BCRYPT_PROVIDER_HANDLE L"ProviderHandle"
|
|
|
|
#define BCRYPT_SIGNATURE_LENGTH L"SignatureLength"
|
|
|
|
|
|
|
|
#define BCRYPT_OPAQUE_KEY_BLOB L"OpaqueKeyBlob"
|
|
|
|
#define BCRYPT_KEY_DATA_BLOB L"KeyDataBlob"
|
|
|
|
#define BCRYPT_AES_WRAP_KEY_BLOB L"Rfc3565KeyWrapBlob"
|
|
|
|
#define BCRYPT_ECCPUBLIC_BLOB L"ECCPUBLICBLOB"
|
|
|
|
#define BCRYPT_ECCPRIVATE_BLOB L"ECCPRIVATEBLOB"
|
|
|
|
#define BCRYPT_RSAPUBLIC_BLOB L"RSAPUBLICBLOB"
|
|
|
|
#define BCRYPT_RSAPRIVATE_BLOB L"RSAPRIVATEBLOB"
|
|
|
|
|
|
|
|
#define MS_PRIMITIVE_PROVIDER L"Microsoft Primitive Provider"
|
|
|
|
#define MS_PLATFORM_CRYPTO_PROVIDER L"Microsoft Platform Crypto Provider"
|
|
|
|
|
|
|
|
#define BCRYPT_AES_ALGORITHM L"AES"
|
|
|
|
#define BCRYPT_MD2_ALGORITHM L"MD2"
|
|
|
|
#define BCRYPT_MD4_ALGORITHM L"MD4"
|
|
|
|
#define BCRYPT_MD5_ALGORITHM L"MD5"
|
|
|
|
#define BCRYPT_RNG_ALGORITHM L"RNG"
|
|
|
|
#define BCRYPT_RSA_ALGORITHM L"RSA"
|
|
|
|
#define BCRYPT_SHA1_ALGORITHM L"SHA1"
|
|
|
|
#define BCRYPT_SHA256_ALGORITHM L"SHA256"
|
|
|
|
#define BCRYPT_SHA384_ALGORITHM L"SHA384"
|
|
|
|
#define BCRYPT_SHA512_ALGORITHM L"SHA512"
|
|
|
|
#define BCRYPT_ECDH_P256_ALGORITHM L"ECDH_P256"
|
|
|
|
#define BCRYPT_ECDSA_P256_ALGORITHM L"ECDSA_P256"
|
|
|
|
#define BCRYPT_ECDSA_P384_ALGORITHM L"ECDSA_P384"
|
|
|
|
#define BCRYPT_ECDSA_P521_ALGORITHM L"ECDSA_P521"
|
|
|
|
|
|
|
|
#define BCRYPT_CHAIN_MODE_NA L"ChainingModeN/A"
|
|
|
|
#define BCRYPT_CHAIN_MODE_CBC L"ChainingModeCBC"
|
|
|
|
#define BCRYPT_CHAIN_MODE_ECB L"ChainingModeECB"
|
|
|
|
#define BCRYPT_CHAIN_MODE_CFB L"ChainingModeCFB"
|
|
|
|
#define BCRYPT_CHAIN_MODE_CCM L"ChainingModeCCM"
|
|
|
|
#define BCRYPT_CHAIN_MODE_GCM L"ChainingModeGCM"
|
|
|
|
#else
|
|
|
|
static const WCHAR BCRYPT_ALGORITHM_NAME[] = {'A','l','g','o','r','i','t','h','m','N','a','m','e',0};
|
|
|
|
static const WCHAR BCRYPT_AUTH_TAG_LENGTH[] = {'A','u','t','h','T','a','g','L','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_BLOCK_LENGTH[] = {'B','l','o','c','k','L','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_BLOCK_SIZE_LIST[] = {'B','l','o','c','k','S','i','z','e','L','i','s','t',0};
|
|
|
|
static const WCHAR BCRYPT_CHAINING_MODE[] = {'C','h','a','i','n','i','n','g','M','o','d','e',0};
|
|
|
|
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};
|
|
|
|
static const WCHAR BCRYPT_HASH_BLOCK_LENGTH[] = {'H','a','s','h','B','l','o','c','k','L','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_HASH_LENGTH[] = {'H','a','s','h','D','i','g','e','s','t','L','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_HASH_OID_LIST[] = {'H','a','s','h','O','I','D','L','i','s','t',0};
|
|
|
|
static const WCHAR BCRYPT_KEY_LENGTH[] = {'K','e','y','L','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_KEY_LENGTHS[] = {'K','e','y','L','e','n','g','t','h','s',0};
|
|
|
|
static const WCHAR BCRYPT_KEY_OBJECT_LENGTH[] = {'K','e','y','O','b','j','e','c','t','L','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_KEY_STRENGTH[] = {'K','e','y','S','t','r','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_OBJECT_LENGTH[] = {'O','b','j','e','c','t','L','e','n','g','t','h',0};
|
|
|
|
static const WCHAR BCRYPT_PADDING_SCHEMES[] = {'P','a','d','d','i','n','g','S','c','h','e','m','e','s',0};
|
|
|
|
static const WCHAR BCRYPT_PROVIDER_HANDLE[] = {'P','r','o','v','i','d','e','r','H','a','n','d','l','e',0};
|
|
|
|
static const WCHAR BCRYPT_SIGNATURE_LENGTH[] = {'S','i','g','n','a','t','u','r','e','L','e','n','g','t','h',0};
|
|
|
|
|
|
|
|
static const WCHAR BCRYPT_OPAQUE_KEY_BLOB[] = {'O','p','a','q','u','e','K','e','y','B','l','o','b',0};
|
|
|
|
static const WCHAR BCRYPT_KEY_DATA_BLOB[] = {'K','e','y','D','a','t','a','B','l','o','b',0};
|
|
|
|
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};
|
|
|
|
static const WCHAR BCRYPT_ECCPUBLIC_BLOB[] = {'E','C','C','P','U','B','L','I','C','B','L','O','B',0};
|
|
|
|
static const WCHAR BCRYPT_ECCPRIVATE_BLOB[] = {'E','C','C','P','R','I','V','A','T','E','B','L','O','B',0};
|
|
|
|
static const WCHAR BCRYPT_RSAPUBLIC_BLOB[] = {'R','S','A','P','U','B','L','I','C','B','L','O','B',0};
|
|
|
|
static const WCHAR BCRYPT_RSAPRIVATE_BLOB[] = {'R','S','A','P','R','I','V','A','T','E','B','L','O','B',0};
|
|
|
|
|
|
|
|
static const WCHAR MS_PRIMITIVE_PROVIDER[] = \
|
|
|
|
{'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};
|
|
|
|
static const WCHAR MS_PLATFORM_CRYPTO_PROVIDER[] = \
|
|
|
|
{'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};
|
|
|
|
|
|
|
|
static const WCHAR BCRYPT_AES_ALGORITHM[] = {'A','E','S',0};
|
|
|
|
static const WCHAR BCRYPT_MD2_ALGORITHM[] = {'M','D','2',0};
|
|
|
|
static const WCHAR BCRYPT_MD4_ALGORITHM[] = {'M','D','4',0};
|
|
|
|
static const WCHAR BCRYPT_MD5_ALGORITHM[] = {'M','D','5',0};
|
|
|
|
static const WCHAR BCRYPT_RNG_ALGORITHM[] = {'R','N','G',0};
|
|
|
|
static const WCHAR BCRYPT_RSA_ALGORITHM[] = {'R','S','A',0};
|
|
|
|
static const WCHAR BCRYPT_SHA1_ALGORITHM[] = {'S','H','A','1',0};
|
|
|
|
static const WCHAR BCRYPT_SHA256_ALGORITHM[] = {'S','H','A','2','5','6',0};
|
|
|
|
static const WCHAR BCRYPT_SHA384_ALGORITHM[] = {'S','H','A','3','8','4',0};
|
|
|
|
static const WCHAR BCRYPT_SHA512_ALGORITHM[] = {'S','H','A','5','1','2',0};
|
|
|
|
static const WCHAR BCRYPT_ECDH_P256_ALGORITHM[] = {'E','C','D','H','_','P','2','5','6',0};
|
|
|
|
static const WCHAR BCRYPT_ECDSA_P256_ALGORITHM[] = {'E','C','D','S','A','_','P','2','5','6',0};
|
|
|
|
static const WCHAR BCRYPT_ECDSA_P384_ALGORITHM[] = {'E','C','D','S','A','_','P','3','8','4',0};
|
|
|
|
static const WCHAR BCRYPT_ECDSA_P521_ALGORITHM[] = {'E','C','D','S','A','_','P','5','2','1',0};
|
|
|
|
|
|
|
|
static const WCHAR BCRYPT_CHAIN_MODE_NA[] = {'C','h','a','i','n','i','n','g','M','o','d','e','N','/','A',0};
|
|
|
|
static const WCHAR BCRYPT_CHAIN_MODE_CBC[] = {'C','h','a','i','n','i','n','g','M','o','d','e','C','B','C',0};
|
|
|
|
static const WCHAR BCRYPT_CHAIN_MODE_ECB[] = {'C','h','a','i','n','i','n','g','M','o','d','e','E','C','B',0};
|
|
|
|
static const WCHAR BCRYPT_CHAIN_MODE_CFB[] = {'C','h','a','i','n','i','n','g','M','o','d','e','C','F','B',0};
|
|
|
|
static const WCHAR BCRYPT_CHAIN_MODE_CCM[] = {'C','h','a','i','n','i','n','g','M','o','d','e','C','C','M',0};
|
|
|
|
static const WCHAR BCRYPT_CHAIN_MODE_GCM[] = {'C','h','a','i','n','i','n','g','M','o','d','e','G','C','M',0};
|
|
|
|
#endif
|
2016-12-02 20:36:41 +00:00
|
|
|
|
2018-03-20 20:27:11 +00:00
|
|
|
#define BCRYPT_ECDSA_PUBLIC_P256_MAGIC 0x31534345
|
|
|
|
#define BCRYPT_ECDSA_PRIVATE_P256_MAGIC 0x32534345
|
|
|
|
#define BCRYPT_ECDSA_PUBLIC_P384_MAGIC 0x33534345
|
|
|
|
#define BCRYPT_ECDSA_PRIVATE_P384_MAGIC 0x34534345
|
|
|
|
#define BCRYPT_ECDSA_PUBLIC_P521_MAGIC 0x35534345
|
|
|
|
#define BCRYPT_ECDSA_PRIVATE_P521_MAGIC 0x36534345
|
|
|
|
|
2019-02-13 09:21:15 +00:00
|
|
|
#define BCRYPT_ECDH_PUBLIC_P256_MAGIC 0x314b4345
|
|
|
|
#define BCRYPT_ECDH_PRIVATE_P256_MAGIC 0x324b4345
|
|
|
|
#define BCRYPT_ECDH_PUBLIC_P384_MAGIC 0x334b4345
|
|
|
|
#define BCRYPT_ECDH_PRIVATE_P384_MAGIC 0x344b4345
|
|
|
|
#define BCRYPT_ECDH_PUBLIC_P521_MAGIC 0x354b4345
|
|
|
|
#define BCRYPT_ECDH_PRIVATE_P521_MAGIC 0x364b4345
|
|
|
|
|
2011-05-30 10:45:30 +00:00
|
|
|
typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
|
|
|
|
{
|
|
|
|
LPWSTR pszName;
|
|
|
|
ULONG dwClass;
|
|
|
|
ULONG dwFlags;
|
|
|
|
} BCRYPT_ALGORITHM_IDENTIFIER;
|
|
|
|
|
2017-08-17 11:36:38 +00:00
|
|
|
typedef struct __BCRYPT_KEY_LENGTHS_STRUCT
|
|
|
|
{
|
|
|
|
ULONG dwMinLength;
|
|
|
|
ULONG dwMaxLength;
|
|
|
|
ULONG dwIncrement;
|
2018-03-19 11:16:08 +00:00
|
|
|
} BCRYPT_KEY_LENGTHS_STRUCT, BCRYPT_AUTH_TAG_LENGTHS_STRUCT;
|
|
|
|
|
|
|
|
typedef struct _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO
|
|
|
|
{
|
|
|
|
ULONG cbSize;
|
|
|
|
ULONG dwInfoVersion;
|
|
|
|
UCHAR *pbNonce;
|
|
|
|
ULONG cbNonce;
|
|
|
|
UCHAR *pbAuthData;
|
|
|
|
ULONG cbAuthData;
|
|
|
|
UCHAR *pbTag;
|
|
|
|
ULONG cbTag;
|
|
|
|
UCHAR *pbMacContext;
|
|
|
|
ULONG cbMacContext;
|
|
|
|
ULONG cbAAD;
|
|
|
|
ULONGLONG cbData;
|
|
|
|
ULONG dwFlags;
|
|
|
|
} BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO, *PBCRYPT_AUTHENTICATED_CIPHER_MODE_INFO;
|
|
|
|
|
2018-03-20 20:27:11 +00:00
|
|
|
typedef struct _BCRYPT_ECCKEY_BLOB
|
|
|
|
{
|
|
|
|
ULONG dwMagic;
|
|
|
|
ULONG cbKey;
|
|
|
|
} BCRYPT_ECCKEY_BLOB, *PBCRYPT_ECCKEY_BLOB;
|
|
|
|
|
2018-03-26 13:04:35 +00:00
|
|
|
#define BCRYPT_RSAPUBLIC_MAGIC 0x31415352
|
|
|
|
#define BCRYPT_RSAPRIVATE_MAGIC 0x32415352
|
|
|
|
#define BCRYPT_RSAFULLPRIVATE_MAGIC 0x33415352
|
|
|
|
|
|
|
|
typedef struct _BCRYPT_RSAKEY_BLOB
|
|
|
|
{
|
|
|
|
ULONG Magic;
|
|
|
|
ULONG BitLength;
|
|
|
|
ULONG cbPublicExp;
|
|
|
|
ULONG cbModulus;
|
|
|
|
ULONG cbPrime1;
|
|
|
|
ULONG cbPrime2;
|
|
|
|
} BCRYPT_RSAKEY_BLOB;
|
|
|
|
|
2018-03-20 20:27:11 +00:00
|
|
|
typedef struct _BCRYPT_PKCS1_PADDING_INFO
|
|
|
|
{
|
|
|
|
LPCWSTR pszAlgId;
|
|
|
|
} BCRYPT_PKCS1_PADDING_INFO;
|
|
|
|
|
|
|
|
#define BCRYPT_PAD_NONE 0x00000001
|
|
|
|
#define BCRYPT_PAD_PKCS1 0x00000002
|
|
|
|
#define BCRYPT_PAD_OAEP 0x00000004
|
|
|
|
#define BCRYPT_PAD_PSS 0x00000008
|
|
|
|
#define BCRYPT_PAD_PKCS1_OPTIONAL_HASH_OID 0x00000010
|
|
|
|
|
2018-03-19 11:16:08 +00:00
|
|
|
#define BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_VERSION 1
|
|
|
|
|
|
|
|
#define BCRYPT_AUTH_MODE_CHAIN_CALLS_FLAG 0x00000001
|
|
|
|
#define BCRYPT_AUTH_MODE_IN_PROGRESS_FLAG 0x00000002
|
2017-08-17 11:36:38 +00:00
|
|
|
|
2017-12-13 04:45:42 +00:00
|
|
|
typedef struct _CRYPT_INTERFACE_REG
|
|
|
|
{
|
|
|
|
ULONG dwInterface;
|
|
|
|
ULONG dwFlags;
|
|
|
|
ULONG cFunctions;
|
|
|
|
PWSTR *rgpszFunctions;
|
|
|
|
} CRYPT_INTERFACE_REG, *PCRYPT_INTERFACE_REG;
|
|
|
|
|
|
|
|
typedef struct _CRYPT_IMAGE_REG
|
|
|
|
{
|
|
|
|
PWSTR pszImage;
|
|
|
|
ULONG cInterfaces;
|
|
|
|
PCRYPT_INTERFACE_REG *rgpInterfaces;
|
|
|
|
} CRYPT_IMAGE_REG, *PCRYPT_IMAGE_REG;
|
|
|
|
|
|
|
|
typedef struct _CRYPT_PROVIDER_REG
|
|
|
|
{
|
|
|
|
ULONG cAliases;
|
|
|
|
PWSTR *rgpszAliases;
|
|
|
|
PCRYPT_IMAGE_REG pUM;
|
|
|
|
PCRYPT_IMAGE_REG pKM;
|
|
|
|
} CRYPT_PROVIDER_REG, *PCRYPT_PROVIDER_REG;
|
|
|
|
|
2018-02-28 12:33:06 +00:00
|
|
|
typedef struct _BCRYPT_KEY_DATA_BLOB_HEADER
|
|
|
|
{
|
|
|
|
ULONG dwMagic;
|
|
|
|
ULONG dwVersion;
|
|
|
|
ULONG cbKeyData;
|
|
|
|
} BCRYPT_KEY_DATA_BLOB_HEADER, *PBCRYPT_KEY_DATA_BLOB_HEADER;
|
|
|
|
|
2019-05-28 03:32:57 +00:00
|
|
|
typedef struct _BCryptBuffer
|
|
|
|
{
|
|
|
|
ULONG cbBuffer;
|
|
|
|
ULONG BufferType;
|
|
|
|
void *pvBuffer;
|
|
|
|
} BCryptBuffer, *PBCryptBuffer;
|
|
|
|
|
|
|
|
typedef struct _BCryptBufferDesc
|
|
|
|
{
|
|
|
|
ULONG ulVersion;
|
|
|
|
ULONG cBuffers;
|
|
|
|
PBCryptBuffer pBuffers;
|
|
|
|
} BCryptBufferDesc, *PBCryptBufferDesc;
|
|
|
|
|
2018-02-28 12:33:06 +00:00
|
|
|
#define BCRYPT_KEY_DATA_BLOB_MAGIC 0x4d42444b
|
|
|
|
#define BCRYPT_KEY_DATA_BLOB_VERSION1 1
|
|
|
|
|
2014-02-03 18:24:21 +00:00
|
|
|
typedef PVOID BCRYPT_ALG_HANDLE;
|
2016-12-02 20:36:42 +00:00
|
|
|
typedef PVOID BCRYPT_KEY_HANDLE;
|
2014-10-21 20:53:49 +00:00
|
|
|
typedef PVOID BCRYPT_HANDLE;
|
2015-09-25 09:23:40 +00:00
|
|
|
typedef PVOID BCRYPT_HASH_HANDLE;
|
2019-05-28 03:32:56 +00:00
|
|
|
typedef PVOID BCRYPT_SECRET_HANDLE;
|
2014-02-03 18:24:21 +00:00
|
|
|
|
2016-12-02 20:36:42 +00:00
|
|
|
/* Flags for BCryptGenRandom */
|
2014-02-03 18:24:21 +00:00
|
|
|
#define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001
|
|
|
|
#define BCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002
|
2016-12-02 20:36:42 +00:00
|
|
|
|
|
|
|
/* Flags for BCryptOpenAlgorithmProvider */
|
2016-03-11 03:33:40 +00:00
|
|
|
#define BCRYPT_ALG_HANDLE_HMAC_FLAG 0x00000008
|
2014-02-03 18:24:21 +00:00
|
|
|
|
2016-12-02 20:36:43 +00:00
|
|
|
/* Flags for BCryptEncrypt/BCryptDecrypt */
|
|
|
|
#define BCRYPT_BLOCK_PADDING 0x00000001
|
|
|
|
|
2019-03-06 09:14:28 +00:00
|
|
|
/* Flags for BCryptCreateHash */
|
|
|
|
#define BCRYPT_HASH_REUSABLE_FLAG 0x00000020
|
|
|
|
|
2016-01-06 13:19:14 +00:00
|
|
|
NTSTATUS WINAPI BCryptCloseAlgorithmProvider(BCRYPT_ALG_HANDLE, ULONG);
|
|
|
|
NTSTATUS WINAPI BCryptCreateHash(BCRYPT_ALG_HANDLE, BCRYPT_HASH_HANDLE *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG);
|
2016-12-02 20:36:42 +00:00
|
|
|
NTSTATUS WINAPI BCryptDecrypt(BCRYPT_KEY_HANDLE, PUCHAR, ULONG, VOID *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG *, ULONG);
|
2019-05-28 03:32:57 +00:00
|
|
|
NTSTATUS WINAPI BCryptDeriveKey(BCRYPT_SECRET_HANDLE, LPCWSTR, BCryptBufferDesc*, PUCHAR, ULONG, ULONG *, ULONG);
|
2019-02-13 09:21:18 +00:00
|
|
|
NTSTATUS WINAPI BCryptDeriveKeyPBKDF2(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, PUCHAR, ULONG, ULONGLONG, PUCHAR, ULONG, ULONG);
|
2016-01-06 13:19:14 +00:00
|
|
|
NTSTATUS WINAPI BCryptDestroyHash(BCRYPT_HASH_HANDLE);
|
2016-12-02 20:36:42 +00:00
|
|
|
NTSTATUS WINAPI BCryptDestroyKey(BCRYPT_KEY_HANDLE);
|
2019-05-28 03:32:56 +00:00
|
|
|
NTSTATUS WINAPI BCryptDestroySecret(BCRYPT_SECRET_HANDLE);
|
2019-02-13 09:21:15 +00:00
|
|
|
NTSTATUS WINAPI BCryptDuplicateHash(BCRYPT_HASH_HANDLE, BCRYPT_HASH_HANDLE *, UCHAR *, ULONG, ULONG);
|
2016-12-02 20:36:42 +00:00
|
|
|
NTSTATUS WINAPI BCryptEncrypt(BCRYPT_KEY_HANDLE, PUCHAR, ULONG, VOID *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG *, ULONG);
|
2016-01-06 13:19:14 +00:00
|
|
|
NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG, ULONG *, BCRYPT_ALGORITHM_IDENTIFIER **, ULONG);
|
2019-02-13 09:21:15 +00:00
|
|
|
NTSTATUS WINAPI BCryptFinalizeKeyPair(BCRYPT_KEY_HANDLE, ULONG);
|
2016-01-06 13:19:14 +00:00
|
|
|
NTSTATUS WINAPI BCryptFinishHash(BCRYPT_HASH_HANDLE, PUCHAR, ULONG, ULONG);
|
2019-02-13 09:21:15 +00:00
|
|
|
NTSTATUS WINAPI BCryptGenerateKeyPair(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE *, ULONG, ULONG);
|
2016-12-02 20:36:42 +00:00
|
|
|
NTSTATUS WINAPI BCryptGenerateSymmetricKey(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG);
|
2016-01-06 13:19:14 +00:00
|
|
|
NTSTATUS WINAPI BCryptGenRandom(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, ULONG);
|
|
|
|
NTSTATUS WINAPI BCryptGetFipsAlgorithmMode(BOOLEAN *);
|
|
|
|
NTSTATUS WINAPI BCryptGetProperty(BCRYPT_HANDLE, LPCWSTR, PUCHAR, ULONG, ULONG *, ULONG);
|
2016-03-24 05:22:22 +00:00
|
|
|
NTSTATUS WINAPI BCryptHash(BCRYPT_ALG_HANDLE, PUCHAR, ULONG, PUCHAR, ULONG, PUCHAR, ULONG);
|
2016-01-06 13:19:14 +00:00
|
|
|
NTSTATUS WINAPI BCryptHashData(BCRYPT_HASH_HANDLE, PUCHAR, ULONG, ULONG);
|
2018-03-26 13:04:33 +00:00
|
|
|
NTSTATUS WINAPI BCryptImportKeyPair(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE, LPCWSTR, BCRYPT_KEY_HANDLE *, UCHAR *, ULONG, ULONG);
|
2016-01-06 13:19:14 +00:00
|
|
|
NTSTATUS WINAPI BCryptOpenAlgorithmProvider(BCRYPT_ALG_HANDLE *, LPCWSTR, LPCWSTR, ULONG);
|
2019-05-28 03:32:56 +00:00
|
|
|
NTSTATUS WINAPI BCryptSecretAgreement(BCRYPT_KEY_HANDLE, BCRYPT_KEY_HANDLE, BCRYPT_SECRET_HANDLE *, ULONG);
|
2016-12-02 20:36:42 +00:00
|
|
|
NTSTATUS WINAPI BCryptSetProperty(BCRYPT_HANDLE, LPCWSTR, PUCHAR, ULONG, ULONG);
|
2018-03-26 13:04:33 +00:00
|
|
|
NTSTATUS WINAPI BCryptVerifySignature(BCRYPT_KEY_HANDLE, void *, UCHAR *, ULONG, UCHAR *, ULONG, ULONG);
|
2016-01-06 13:19:14 +00:00
|
|
|
|
2007-08-31 00:31:09 +00:00
|
|
|
#endif /* __WINE_BCRYPT_H */
|