FreeRDP
bcrypt.c
1 
20 #include <winpr/config.h>
21 
22 #ifndef _WIN32
23 #include <winpr/bcrypt.h>
24 
30 NTSTATUS BCryptOpenAlgorithmProvider(BCRYPT_ALG_HANDLE* phAlgorithm, LPCWSTR pszAlgId,
31  LPCWSTR pszImplementation, ULONG dwFlags)
32 {
33  return 0;
34 }
35 
36 NTSTATUS BCryptCloseAlgorithmProvider(BCRYPT_ALG_HANDLE hAlgorithm, ULONG dwFlags)
37 {
38  return 0;
39 }
40 
41 NTSTATUS BCryptGetProperty(BCRYPT_HANDLE hObject, LPCWSTR pszProperty, PUCHAR pbOutput,
42  ULONG cbOutput, ULONG* pcbResult, ULONG dwFlags)
43 {
44  return 0;
45 }
46 
47 NTSTATUS BCryptCreateHash(BCRYPT_ALG_HANDLE hAlgorithm, BCRYPT_HASH_HANDLE* phHash,
48  PUCHAR pbHashObject, ULONG cbHashObject, PUCHAR pbSecret, ULONG cbSecret,
49  ULONG dwFlags)
50 {
51  return 0;
52 }
53 
54 NTSTATUS BCryptDestroyHash(BCRYPT_HASH_HANDLE hHash)
55 {
56  return 0;
57 }
58 
59 NTSTATUS BCryptHashData(BCRYPT_HASH_HANDLE hHash, PUCHAR pbInput, ULONG cbInput, ULONG dwFlags)
60 {
61  return 0;
62 }
63 
64 NTSTATUS BCryptFinishHash(BCRYPT_HASH_HANDLE hHash, PUCHAR pbOutput, ULONG cbOutput, ULONG dwFlags)
65 {
66  return 0;
67 }
68 
69 NTSTATUS BCryptGenRandom(BCRYPT_ALG_HANDLE hAlgorithm, PUCHAR pbBuffer, ULONG cbBuffer,
70  ULONG dwFlags)
71 {
72  return 0;
73 }
74 
75 NTSTATUS BCryptGenerateSymmetricKey(BCRYPT_ALG_HANDLE hAlgorithm, BCRYPT_KEY_HANDLE* phKey,
76  PUCHAR pbKeyObject, ULONG cbKeyObject, PUCHAR pbSecret,
77  ULONG cbSecret, ULONG dwFlags)
78 {
79  return 0;
80 }
81 
82 NTSTATUS BCryptGenerateKeyPair(BCRYPT_ALG_HANDLE hAlgorithm, BCRYPT_KEY_HANDLE* phKey,
83  ULONG dwLength, ULONG dwFlags)
84 {
85  return 0;
86 }
87 
88 NTSTATUS BCryptImportKey(BCRYPT_ALG_HANDLE hAlgorithm, BCRYPT_KEY_HANDLE hImportKey,
89  LPCWSTR pszBlobType, BCRYPT_KEY_HANDLE* phKey, PUCHAR pbKeyObject,
90  ULONG cbKeyObject, PUCHAR pbInput, ULONG cbInput, ULONG dwFlags)
91 {
92  return 0;
93 }
94 
95 NTSTATUS BCryptDestroyKey(BCRYPT_KEY_HANDLE hKey)
96 {
97  return 0;
98 }
99 
100 NTSTATUS BCryptEncrypt(BCRYPT_KEY_HANDLE hKey, PUCHAR pbInput, ULONG cbInput, VOID* pPaddingInfo,
101  PUCHAR pbIV, ULONG cbIV, PUCHAR pbOutput, ULONG cbOutput, ULONG* pcbResult,
102  ULONG dwFlags)
103 {
104  return 0;
105 }
106 
107 NTSTATUS BCryptDecrypt(BCRYPT_KEY_HANDLE hKey, PUCHAR pbInput, ULONG cbInput, VOID* pPaddingInfo,
108  PUCHAR pbIV, ULONG cbIV, PUCHAR pbOutput, ULONG cbOutput, ULONG* pcbResult,
109  ULONG dwFlags)
110 {
111  return 0;
112 }
113 
114 #endif /* _WIN32 */