|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <wine/config.h>#include <wine/port.h>#include <ntstatus.h>#include <windef.h>#include <winbase.h>#include <ntsecapi.h>#include <bcrypt.h>#include <wine/debug.h>#include <wine/unicode.h>#include <wine/library.h>
Go to the source code of this file.
Classes | |
| struct | object |
| struct | algorithm |
Macros | |
| #define | WIN32_NO_STATUS |
| #define | MAGIC_ALG (('A' << 24) | ('L' << 16) | ('G' << 8) | '0') |
| #define | MAGIC_HASH (('H' << 24) | ('A' << 16) | ('S' << 8) | 'H') |
| #define | OBJECT_LENGTH_MD5 274 |
| #define | OBJECT_LENGTH_SHA1 278 |
| #define | OBJECT_LENGTH_SHA256 286 |
| #define | OBJECT_LENGTH_SHA384 382 |
| #define | OBJECT_LENGTH_SHA512 382 |
Enumerations | |
| enum | alg_id { ALG_ID_MD5 , ALG_ID_RNG , ALG_ID_SHA1 , ALG_ID_SHA256 , ALG_ID_SHA384 , ALG_ID_SHA512 , ALG_ID_ECDSA_P256 , ALG_ID_ECDSA_P384 } |
Variables | |
| static HINSTANCE | instance |
| struct { | |
| ULONG hash_length | |
| const WCHAR * alg_name | |
| } | alg_props [] |
Definition at line 255 of file bcrypt_main.c.
Definition at line 256 of file bcrypt_main.c.
| #define OBJECT_LENGTH_MD5 274 |
Definition at line 860 of file bcrypt_main.c.
| #define OBJECT_LENGTH_SHA1 278 |
Definition at line 861 of file bcrypt_main.c.
| #define OBJECT_LENGTH_SHA256 286 |
Definition at line 862 of file bcrypt_main.c.
| #define OBJECT_LENGTH_SHA384 382 |
Definition at line 863 of file bcrypt_main.c.
| #define OBJECT_LENGTH_SHA512 382 |
Definition at line 864 of file bcrypt_main.c.
| #define WIN32_NO_STATUS |
Definition at line 24 of file bcrypt_main.c.
| Enumerator | |
|---|---|
| ALG_ID_MD5 | |
| ALG_ID_RNG | |
| ALG_ID_SHA1 | |
| ALG_ID_SHA256 | |
| ALG_ID_SHA384 | |
| ALG_ID_SHA512 | |
| ALG_ID_ECDSA_P256 | |
| ALG_ID_ECDSA_P384 | |
Definition at line 262 of file bcrypt_main.c.
| NTSTATUS WINAPI BCryptCloseAlgorithmProvider | ( | BCRYPT_ALG_HANDLE | handle, |
| DWORD | flags | ||
| ) |
Definition at line 380 of file bcrypt_main.c.
Referenced by assembly_get_pubkey_token(), CNG_CalcHash(), CNG_ImportECCPubKey(), and test_VerifySignature().
| NTSTATUS WINAPI BCryptCreateHash | ( | BCRYPT_ALG_HANDLE | algorithm, |
| BCRYPT_HASH_HANDLE * | handle, | ||
| UCHAR * | object, | ||
| ULONG | objectlen, | ||
| UCHAR * | secret, | ||
| ULONG | secretlen, | ||
| ULONG | flags | ||
| ) |
Definition at line 1005 of file bcrypt_main.c.
Referenced by BCryptHash(), CNG_CalcHash(), and test_VerifySignature().
| NTSTATUS WINAPI BCryptDestroyHash | ( | BCRYPT_HASH_HANDLE | handle | ) |
Definition at line 1047 of file bcrypt_main.c.
Referenced by BCryptHash(), CNG_CalcHash(), and test_VerifySignature().
| NTSTATUS WINAPI BCryptEnumAlgorithms | ( | ULONG | dwAlgOperations, |
| ULONG * | pAlgCount, | ||
| BCRYPT_ALGORITHM_IDENTIFIER ** | ppAlgList, | ||
| ULONG | dwFlags | ||
| ) |
Definition at line 244 of file bcrypt_main.c.
| NTSTATUS WINAPI BCryptFinishHash | ( | BCRYPT_HASH_HANDLE | handle, |
| UCHAR * | output, | ||
| ULONG | size, | ||
| ULONG | flags | ||
| ) |
Definition at line 1077 of file bcrypt_main.c.
Referenced by BCryptHash(), CNG_CalcHash(), and test_VerifySignature().
| NTSTATUS WINAPI BCryptGenRandom | ( | BCRYPT_ALG_HANDLE | handle, |
| UCHAR * | buffer, | ||
| ULONG | count, | ||
| ULONG | flags | ||
| ) |
Definition at line 295 of file bcrypt_main.c.
Definition at line 391 of file bcrypt_main.c.
| NTSTATUS WINAPI BCryptGetProperty | ( | BCRYPT_HANDLE | handle, |
| LPCWSTR | prop, | ||
| UCHAR * | buffer, | ||
| ULONG | count, | ||
| ULONG * | res, | ||
| ULONG | flags | ||
| ) |
Definition at line 978 of file bcrypt_main.c.
Referenced by CNG_CalcHash(), and test_VerifySignature().
| NTSTATUS WINAPI BCryptHash | ( | BCRYPT_ALG_HANDLE | algorithm, |
| UCHAR * | secret, | ||
| ULONG | secretlen, | ||
| UCHAR * | input, | ||
| ULONG | inputlen, | ||
| UCHAR * | output, | ||
| ULONG | outputlen | ||
| ) |
Definition at line 1096 of file bcrypt_main.c.
Referenced by assembly_get_pubkey_token().
| NTSTATUS WINAPI BCryptHashData | ( | BCRYPT_HASH_HANDLE | handle, |
| UCHAR * | input, | ||
| ULONG | size, | ||
| ULONG | flags | ||
| ) |
Definition at line 1058 of file bcrypt_main.c.
Referenced by BCryptHash(), CNG_CalcHash(), and test_VerifySignature().
| NTSTATUS WINAPI BCryptOpenAlgorithmProvider | ( | BCRYPT_ALG_HANDLE * | handle, |
| LPCWSTR | id, | ||
| LPCWSTR | implementation, | ||
| DWORD | flags | ||
| ) |
Definition at line 336 of file bcrypt_main.c.
Referenced by assembly_get_pubkey_token(), CNG_CalcHash(), CNG_ImportECCPubKey(), and test_VerifySignature().
Definition at line 1128 of file bcrypt_main.c.
|
static |
Definition at line 866 of file bcrypt_main.c.
Referenced by get_alg_property(), and get_hash_property().
|
static |
Definition at line 891 of file bcrypt_main.c.
Referenced by BCryptGetProperty().
|
static |
| WINE_DEFAULT_DEBUG_CHANNEL | ( | bcrypt | ) |
Definition at line 276 of file bcrypt_main.c.
Referenced by generic_alg_property().
| const struct { ... } alg_props[] |
Referenced by generic_alg_property().
| ULONG hash_length |
Definition at line 275 of file bcrypt_main.c.
Referenced by generic_alg_property().
|
static |
Definition at line 44 of file bcrypt_main.c.
Referenced by DllMain().