Marcus Meissner : bcrypt: Add BCryptCreateHash stub.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 1 10:57:00 CDT 2015


Module: wine
Branch: master
Commit: 5b33f18cfc11f73e8b85fcae0f7e9a6326c8c5af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5b33f18cfc11f73e8b85fcae0f7e9a6326c8c5af

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Fri Sep 25 11:23:40 2015 +0200

bcrypt: Add BCryptCreateHash stub.

Signed-off-By: Marcus Meissner <marcus at jet.franken.de>

---

 dlls/bcrypt/bcrypt.spec   | 2 +-
 dlls/bcrypt/bcrypt_main.c | 8 ++++++++
 include/bcrypt.h          | 1 +
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/dlls/bcrypt/bcrypt.spec b/dlls/bcrypt/bcrypt.spec
index 18d4d48..1c848e1 100644
--- a/dlls/bcrypt/bcrypt.spec
+++ b/dlls/bcrypt/bcrypt.spec
@@ -4,7 +4,7 @@
 @ stub BCryptConfigureContext
 @ stub BCryptConfigureContextFunction
 @ stub BCryptCreateContext
-@ stub BCryptCreateHash
+@ stdcall BCryptCreateHash(ptr ptr ptr long ptr long long)
 @ stub BCryptDecrypt
 @ stub BCryptDeleteContext
 @ stub BCryptDeriveKey
diff --git a/dlls/bcrypt/bcrypt_main.c b/dlls/bcrypt/bcrypt_main.c
index 4663e0f..b716aea 100644
--- a/dlls/bcrypt/bcrypt_main.c
+++ b/dlls/bcrypt/bcrypt_main.c
@@ -115,3 +115,11 @@ NTSTATUS WINAPI BCryptGetProperty(BCRYPT_HANDLE obj, LPCWSTR prop, UCHAR *buffer
 
     return STATUS_NOT_IMPLEMENTED;
 }
+
+NTSTATUS WINAPI BCryptCreateHash(BCRYPT_ALG_HANDLE algorithm, BCRYPT_HASH_HANDLE* hash, UCHAR* hashobject,
+				 ULONG hashobjectlen, UCHAR *secret, ULONG secretlen, ULONG flags)
+{
+    FIXME("%p, %p, %p, %u, %p, %u, %08x - stub\n", algorithm, hash, hashobject, hashobjectlen, secret, secretlen, flags);
+
+    return STATUS_NOT_IMPLEMENTED;
+}
diff --git a/include/bcrypt.h b/include/bcrypt.h
index d9b8cc6..fe3d854 100644
--- a/include/bcrypt.h
+++ b/include/bcrypt.h
@@ -49,6 +49,7 @@ typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
 
 typedef PVOID BCRYPT_ALG_HANDLE;
 typedef PVOID BCRYPT_HANDLE;
+typedef PVOID BCRYPT_HASH_HANDLE;
 
 #define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001
 #define BCRYPT_USE_SYSTEM_PREFERRED_RNG  0x00000002




More information about the wine-cvs mailing list