FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
bcrypt.c
1
20#include <winpr/config.h>
21#include <winpr/wlog.h>
22
23#ifndef _WIN32
24#include <winpr/bcrypt.h>
25
31NTSTATUS BCryptOpenAlgorithmProvider(WINPR_ATTR_UNUSED BCRYPT_ALG_HANDLE* phAlgorithm,
32 WINPR_ATTR_UNUSED LPCWSTR pszAlgId,
33 WINPR_ATTR_UNUSED LPCWSTR pszImplementation,
34 WINPR_ATTR_UNUSED ULONG dwFlags)
35{
36 WLog_ERR("TODO", "TODO: implement");
37 return 0;
38}
39
40NTSTATUS BCryptCloseAlgorithmProvider(WINPR_ATTR_UNUSED BCRYPT_ALG_HANDLE hAlgorithm,
41 WINPR_ATTR_UNUSED ULONG dwFlags)
42{
43 WLog_ERR("TODO", "TODO: implement");
44 return 0;
45}
46
47NTSTATUS BCryptGetProperty(WINPR_ATTR_UNUSED BCRYPT_HANDLE hObject,
48 WINPR_ATTR_UNUSED LPCWSTR pszProperty, WINPR_ATTR_UNUSED PUCHAR pbOutput,
49 WINPR_ATTR_UNUSED ULONG cbOutput, WINPR_ATTR_UNUSED ULONG* pcbResult,
50 WINPR_ATTR_UNUSED ULONG dwFlags)
51{
52 WLog_ERR("TODO", "TODO: implement");
53 return 0;
54}
55
56NTSTATUS BCryptCreateHash(WINPR_ATTR_UNUSED BCRYPT_ALG_HANDLE hAlgorithm,
57 WINPR_ATTR_UNUSED BCRYPT_HASH_HANDLE* phHash,
58 WINPR_ATTR_UNUSED PUCHAR pbHashObject,
59 WINPR_ATTR_UNUSED ULONG cbHashObject, WINPR_ATTR_UNUSED PUCHAR pbSecret,
60 WINPR_ATTR_UNUSED ULONG cbSecret, WINPR_ATTR_UNUSED ULONG dwFlags)
61{
62 WLog_ERR("TODO", "TODO: implement");
63 return 0;
64}
65
66NTSTATUS BCryptDestroyHash(WINPR_ATTR_UNUSED BCRYPT_HASH_HANDLE hHash)
67{
68 WLog_ERR("TODO", "TODO: implement");
69 return 0;
70}
71
72NTSTATUS BCryptHashData(WINPR_ATTR_UNUSED BCRYPT_HASH_HANDLE hHash,
73 WINPR_ATTR_UNUSED PUCHAR pbInput, WINPR_ATTR_UNUSED ULONG cbInput,
74 WINPR_ATTR_UNUSED ULONG dwFlags)
75{
76 WLog_ERR("TODO", "TODO: implement");
77 return 0;
78}
79
80NTSTATUS BCryptFinishHash(WINPR_ATTR_UNUSED BCRYPT_HASH_HANDLE hHash,
81 WINPR_ATTR_UNUSED PUCHAR pbOutput, WINPR_ATTR_UNUSED ULONG cbOutput,
82 WINPR_ATTR_UNUSED ULONG dwFlags)
83{
84 WLog_ERR("TODO", "TODO: implement");
85 return 0;
86}
87
88NTSTATUS BCryptGenRandom(WINPR_ATTR_UNUSED BCRYPT_ALG_HANDLE hAlgorithm,
89 WINPR_ATTR_UNUSED PUCHAR pbBuffer, WINPR_ATTR_UNUSED ULONG cbBuffer,
90 WINPR_ATTR_UNUSED ULONG dwFlags)
91{
92 WLog_ERR("TODO", "TODO: implement");
93 return 0;
94}
95
96NTSTATUS BCryptGenerateSymmetricKey(WINPR_ATTR_UNUSED BCRYPT_ALG_HANDLE hAlgorithm,
97 WINPR_ATTR_UNUSED BCRYPT_KEY_HANDLE* phKey,
98 WINPR_ATTR_UNUSED PUCHAR pbKeyObject,
99 WINPR_ATTR_UNUSED ULONG cbKeyObject,
100 WINPR_ATTR_UNUSED PUCHAR pbSecret,
101 WINPR_ATTR_UNUSED ULONG cbSecret,
102 WINPR_ATTR_UNUSED ULONG dwFlags)
103{
104 WLog_ERR("TODO", "TODO: implement");
105 return 0;
106}
107
108NTSTATUS BCryptGenerateKeyPair(WINPR_ATTR_UNUSED BCRYPT_ALG_HANDLE hAlgorithm,
109 WINPR_ATTR_UNUSED BCRYPT_KEY_HANDLE* phKey,
110 WINPR_ATTR_UNUSED ULONG dwLength, WINPR_ATTR_UNUSED ULONG dwFlags)
111{
112 WLog_ERR("TODO", "TODO: implement");
113 return 0;
114}
115
116NTSTATUS BCryptImportKey(WINPR_ATTR_UNUSED BCRYPT_ALG_HANDLE hAlgorithm,
117 WINPR_ATTR_UNUSED BCRYPT_KEY_HANDLE hImportKey,
118 WINPR_ATTR_UNUSED LPCWSTR pszBlobType,
119 WINPR_ATTR_UNUSED BCRYPT_KEY_HANDLE* phKey,
120 WINPR_ATTR_UNUSED PUCHAR pbKeyObject, WINPR_ATTR_UNUSED ULONG cbKeyObject,
121 WINPR_ATTR_UNUSED PUCHAR pbInput, WINPR_ATTR_UNUSED ULONG cbInput,
122 WINPR_ATTR_UNUSED ULONG dwFlags)
123{
124 WLog_ERR("TODO", "TODO: implement");
125 return 0;
126}
127
128NTSTATUS BCryptDestroyKey(WINPR_ATTR_UNUSED BCRYPT_KEY_HANDLE hKey)
129{
130 WLog_ERR("TODO", "TODO: implement");
131 return 0;
132}
133
134NTSTATUS BCryptEncrypt(WINPR_ATTR_UNUSED BCRYPT_KEY_HANDLE hKey, WINPR_ATTR_UNUSED PUCHAR pbInput,
135 WINPR_ATTR_UNUSED ULONG cbInput, WINPR_ATTR_UNUSED VOID* pPaddingInfo,
136 WINPR_ATTR_UNUSED PUCHAR pbIV, WINPR_ATTR_UNUSED ULONG cbIV,
137 WINPR_ATTR_UNUSED PUCHAR pbOutput, WINPR_ATTR_UNUSED ULONG cbOutput,
138 WINPR_ATTR_UNUSED ULONG* pcbResult, WINPR_ATTR_UNUSED ULONG dwFlags)
139{
140 WLog_ERR("TODO", "TODO: implement");
141 return 0;
142}
143
144NTSTATUS BCryptDecrypt(WINPR_ATTR_UNUSED BCRYPT_KEY_HANDLE hKey, WINPR_ATTR_UNUSED PUCHAR pbInput,
145 WINPR_ATTR_UNUSED ULONG cbInput, WINPR_ATTR_UNUSED VOID* pPaddingInfo,
146 WINPR_ATTR_UNUSED PUCHAR pbIV, WINPR_ATTR_UNUSED ULONG cbIV,
147 WINPR_ATTR_UNUSED PUCHAR pbOutput, WINPR_ATTR_UNUSED ULONG cbOutput,
148 WINPR_ATTR_UNUSED ULONG* pcbResult, WINPR_ATTR_UNUSED ULONG dwFlags)
149{
150 WLog_ERR("TODO", "TODO: implement");
151 return 0;
152}
153
154#endif /* _WIN32 */