2 * New cryptographic library (ncrypt.dll)
4 * Copyright 2016 Alex Henrie
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(ncrypt
);
30 SECURITY_STATUS WINAPI
NCryptCreatePersistedKey(NCRYPT_PROV_HANDLE provider
, NCRYPT_KEY_HANDLE
*key
,
31 const WCHAR
*algid
, const WCHAR
*name
, DWORD keyspec
,
34 FIXME("(0x%lx, %p, %s, %s, 0x%08x, 0x%08x): stub\n", provider
, key
, wine_dbgstr_w(algid
),
35 wine_dbgstr_w(name
), keyspec
, flags
);
36 return NTE_NOT_SUPPORTED
;
39 SECURITY_STATUS WINAPI
NCryptDecrypt(NCRYPT_KEY_HANDLE key
, BYTE
*input
, DWORD insize
, void *padding
,
40 BYTE
*output
, DWORD outsize
, DWORD
*result
, DWORD flags
)
42 FIXME("(0x%lx, %p, %u, %p, %p, %u, %p, 0x%08x): stub\n", key
, input
, insize
, padding
,
43 output
, outsize
, result
, flags
);
44 return NTE_NOT_SUPPORTED
;
47 SECURITY_STATUS WINAPI
NCryptDeleteKey(NCRYPT_KEY_HANDLE key
, DWORD flags
)
49 FIXME("(0x%lx, 0x%08x): stub\n", key
, flags
);
50 return NTE_NOT_SUPPORTED
;
53 SECURITY_STATUS WINAPI
NCryptEncrypt(NCRYPT_KEY_HANDLE key
, BYTE
*input
, DWORD insize
, void *padding
,
54 BYTE
*output
, DWORD outsize
, DWORD
*result
, DWORD flags
)
56 FIXME("(0x%lx, %p, %u, %p, %p, %u, %p, 0x%08x): stub\n", key
, input
, insize
, padding
,
57 output
, outsize
, result
, flags
);
58 return NTE_NOT_SUPPORTED
;
61 SECURITY_STATUS WINAPI
NCryptEnumAlgorithms(NCRYPT_PROV_HANDLE provider
, DWORD alg_ops
,
62 DWORD
*alg_count
, NCryptAlgorithmName
**alg_list
,
65 FIXME("(0x%lx, 0x%08x, %p, %p, 0x%08x): stub\n", provider
, alg_ops
, alg_count
, alg_list
, flags
);
66 return NTE_NOT_SUPPORTED
;
69 SECURITY_STATUS WINAPI
NCryptEnumKeys(NCRYPT_PROV_HANDLE provider
, const WCHAR
*scope
,
70 NCryptKeyName
**key_name
, PVOID
*enum_state
, DWORD flags
)
72 FIXME("(0x%lx, %p, %p, %p, 0x%08x): stub\n", provider
, scope
, key_name
, enum_state
, flags
);
73 return NTE_NOT_SUPPORTED
;
76 SECURITY_STATUS WINAPI
NCryptFinalizeKey(NCRYPT_KEY_HANDLE key
, DWORD flags
)
78 FIXME("(0x%lx, 0x%08x): stub\n", key
, flags
);
79 return NTE_NOT_SUPPORTED
;
82 SECURITY_STATUS WINAPI
NCryptFreeBuffer(PVOID buf
)
84 FIXME("(%p): stub\n", buf
);
85 return NTE_NOT_SUPPORTED
;
88 SECURITY_STATUS WINAPI
NCryptFreeObject(NCRYPT_HANDLE object
)
90 FIXME("(0x%lx): stub\n", object
);
91 return NTE_NOT_SUPPORTED
;
94 SECURITY_STATUS WINAPI
NCryptGetProperty(NCRYPT_HANDLE object
, const WCHAR
*property
, PBYTE output
,
95 DWORD outsize
, DWORD
*result
, DWORD flags
)
97 FIXME("(0x%lx, %s, %p, %u, %p, 0x%08x): stub\n", object
, wine_dbgstr_w(property
), output
, outsize
,
99 return NTE_NOT_SUPPORTED
;
102 SECURITY_STATUS WINAPI
NCryptImportKey(NCRYPT_PROV_HANDLE provider
, NCRYPT_KEY_HANDLE decrypt_key
,
103 const WCHAR
*type
, NCryptBufferDesc
*params
, NCRYPT_KEY_HANDLE
*key
,
104 PBYTE data
, DWORD datasize
, DWORD flags
)
106 FIXME("(0x%lx, 0x%lx, %s, %p, %p, %p, %u, 0x%08x): stub\n", provider
, decrypt_key
,
107 wine_dbgstr_w(type
), params
,
108 key
, data
, datasize
, flags
);
109 return NTE_NOT_SUPPORTED
;
112 SECURITY_STATUS WINAPI
NCryptIsAlgSupported(NCRYPT_PROV_HANDLE provider
, const WCHAR
*algid
,
115 FIXME("(0x%lx, %s, 0x%08x): stub\n", provider
, wine_dbgstr_w(algid
), flags
);
116 return NTE_NOT_SUPPORTED
;
119 BOOL WINAPI
NCryptIsKeyHandle(NCRYPT_KEY_HANDLE hKey
)
121 FIXME("(0x%lx): stub\n", hKey
);
125 SECURITY_STATUS WINAPI
NCryptOpenKey(NCRYPT_PROV_HANDLE provider
, NCRYPT_KEY_HANDLE
*key
,
126 const WCHAR
*name
, DWORD keyspec
, DWORD flags
)
128 FIXME("(0x%lx, %p, %s, 0x%08x, 0x%08x): stub\n", provider
, key
, wine_dbgstr_w(name
), keyspec
, flags
);
129 return NTE_NOT_SUPPORTED
;
132 SECURITY_STATUS WINAPI
NCryptOpenStorageProvider(NCRYPT_PROV_HANDLE
*provider
, const WCHAR
*name
, DWORD flags
)
134 FIXME("(%p, %s, %u): stub\n", provider
, wine_dbgstr_w(name
), flags
);
135 return NTE_NOT_SUPPORTED
;
138 SECURITY_STATUS WINAPI
NCryptSetProperty(NCRYPT_HANDLE object
, const WCHAR
*property
,
139 PBYTE input
, DWORD insize
, DWORD flags
)
141 FIXME("(%lx, %s, %p, %u, 0x%08x): stub\n", object
, wine_dbgstr_w(property
), input
, insize
,
143 return NTE_NOT_SUPPORTED
;