2018-11-21 16:07:30 -08:00
|
|
|
From e765bec7193e3ffa27492abe76ed4e56db0f4fc7 Mon Sep 17 00:00:00 2001
|
2018-06-11 15:24:02 -07:00
|
|
|
From: Maxime Lombard <berillions@gmail.com>
|
|
|
|
Date: Sun, 10 Jun 2018 14:52:31 +0200
|
|
|
|
Subject: [PATCH 3/3] bcrypt: Add BCryptFinalizeKeyPair stub.
|
|
|
|
|
|
|
|
---
|
|
|
|
dlls/bcrypt/bcrypt.spec | 2 +-
|
|
|
|
dlls/bcrypt/bcrypt_main.c | 6 ++++++
|
2018-11-21 16:07:30 -08:00
|
|
|
dlls/ncrypt/ncrypt.spec | 2 +-
|
2018-06-11 15:24:02 -07:00
|
|
|
include/bcrypt.h | 1 +
|
2018-11-21 16:07:30 -08:00
|
|
|
4 files changed, 9 insertions(+), 2 deletions(-)
|
2018-06-11 15:24:02 -07:00
|
|
|
|
|
|
|
diff --git a/dlls/bcrypt/bcrypt.spec b/dlls/bcrypt/bcrypt.spec
|
2018-11-21 16:07:30 -08:00
|
|
|
index ccfec63..891381f 100644
|
2018-06-11 15:24:02 -07:00
|
|
|
--- a/dlls/bcrypt/bcrypt.spec
|
|
|
|
+++ b/dlls/bcrypt/bcrypt.spec
|
2018-11-21 16:07:30 -08:00
|
|
|
@@ -21,7 +21,7 @@
|
2018-06-11 15:24:02 -07:00
|
|
|
@ stub BCryptEnumProviders
|
|
|
|
@ stub BCryptEnumRegisteredProviders
|
|
|
|
@ stdcall BCryptExportKey(ptr ptr wstr ptr long ptr long)
|
|
|
|
-@ stub BCryptFinalizeKeyPair
|
|
|
|
+@ stdcall BCryptFinalizeKeyPair(ptr long)
|
|
|
|
@ stdcall BCryptFinishHash(ptr ptr long long)
|
|
|
|
@ stub BCryptFreeBuffer
|
|
|
|
@ stdcall BCryptGenRandom(ptr ptr long long)
|
|
|
|
diff --git a/dlls/bcrypt/bcrypt_main.c b/dlls/bcrypt/bcrypt_main.c
|
2018-11-21 16:07:30 -08:00
|
|
|
index 623ccb5..90af6aa 100644
|
2018-06-11 15:24:02 -07:00
|
|
|
--- a/dlls/bcrypt/bcrypt_main.c
|
|
|
|
+++ b/dlls/bcrypt/bcrypt_main.c
|
2018-07-18 15:45:46 -07:00
|
|
|
@@ -166,6 +166,12 @@ NTSTATUS WINAPI BCryptGenerateKeyPair(BCRYPT_ALG_HANDLE algorithm, BCRYPT_KEY_HA
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
2018-06-11 15:24:02 -07:00
|
|
|
|
|
|
|
+NTSTATUS WINAPI BCryptFinalizeKeyPair(BCRYPT_KEY_HANDLE key, ULONG dwflags)
|
|
|
|
+{
|
|
|
|
+ FIXME("%p, %08x - stub\n", key, dwflags);
|
|
|
|
+ return STATUS_SUCCESS;
|
|
|
|
+}
|
|
|
|
+
|
2018-07-18 15:45:46 -07:00
|
|
|
NTSTATUS WINAPI BCryptOpenAlgorithmProvider( BCRYPT_ALG_HANDLE *handle, LPCWSTR id, LPCWSTR implementation, DWORD flags )
|
2018-06-11 15:24:02 -07:00
|
|
|
{
|
2018-07-18 15:45:46 -07:00
|
|
|
const DWORD supported_flags = BCRYPT_ALG_HANDLE_HMAC_FLAG;
|
2018-11-21 16:07:30 -08:00
|
|
|
diff --git a/dlls/ncrypt/ncrypt.spec b/dlls/ncrypt/ncrypt.spec
|
|
|
|
index e667e75..c6e7f7f 100644
|
|
|
|
--- a/dlls/ncrypt/ncrypt.spec
|
|
|
|
+++ b/dlls/ncrypt/ncrypt.spec
|
|
|
|
@@ -23,7 +23,7 @@
|
|
|
|
@ stub BCryptEnumProviders
|
|
|
|
@ stub BCryptEnumRegisteredProviders
|
|
|
|
@ stdcall BCryptExportKey(ptr ptr wstr ptr long ptr long) bcrypt.BCryptExportKey
|
|
|
|
-@ stub BCryptFinalizeKeyPair
|
|
|
|
+@ stdcall BCryptFinalizeKeyPair(ptr long) bcrypt.BCryptFinalizeKeyPair
|
|
|
|
@ stdcall BCryptFinishHash(ptr ptr long long) bcrypt.BCryptFinishHash
|
|
|
|
@ stub BCryptFreeBuffer
|
|
|
|
@ stdcall BCryptGenRandom(ptr ptr long long) bcrypt.BCryptGenRandom
|
2018-06-11 15:24:02 -07:00
|
|
|
diff --git a/include/bcrypt.h b/include/bcrypt.h
|
2018-11-21 16:07:30 -08:00
|
|
|
index 2ef073b..6826c86 100644
|
2018-06-11 15:24:02 -07:00
|
|
|
--- a/include/bcrypt.h
|
|
|
|
+++ b/include/bcrypt.h
|
2018-11-21 16:07:30 -08:00
|
|
|
@@ -222,6 +222,7 @@ NTSTATUS WINAPI BCryptDestroyHash(BCRYPT_HASH_HANDLE);
|
2018-06-11 15:24:02 -07:00
|
|
|
NTSTATUS WINAPI BCryptDestroyKey(BCRYPT_KEY_HANDLE);
|
|
|
|
NTSTATUS WINAPI BCryptEncrypt(BCRYPT_KEY_HANDLE, PUCHAR, ULONG, VOID *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG *, ULONG);
|
|
|
|
NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG, ULONG *, BCRYPT_ALGORITHM_IDENTIFIER **, ULONG);
|
|
|
|
+NTSTATUS WINAPI BCryptFinalizeKeyPair(BCRYPT_KEY_HANDLE, ULONG);
|
|
|
|
NTSTATUS WINAPI BCryptFinishHash(BCRYPT_HASH_HANDLE, PUCHAR, ULONG, ULONG);
|
|
|
|
NTSTATUS WINAPI BCryptGenerateKeyPair(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE *, ULONG, ULONG);
|
|
|
|
NTSTATUS WINAPI BCryptGenerateSymmetricKey(BCRYPT_ALG_HANDLE, BCRYPT_KEY_HANDLE *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG);
|
|
|
|
--
|
2018-07-18 15:45:46 -07:00
|
|
|
1.9.1
|
2018-06-11 15:24:02 -07:00
|
|
|
|