[PATCH v2 10/10] ncrypt: Create NCryptVerifySignature stub.

Santino Mazza mazzasantino1206 at gmail.com
Mon Feb 14 14:29:41 CST 2022


With this change now some applications which uses ncrypt for
signature validation work.
For example, the visual studio installer (with dotnet and d3dcompiler
from winetricks).

Signed-off-by: Santino Mazza <mazzasantino1206 at gmail.com>
---
 dlls/ncrypt/ncrypt.spec   | 2 +-
 dlls/ncrypt/ncrypt_main.c | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/dlls/ncrypt/ncrypt.spec b/dlls/ncrypt/ncrypt.spec
index 0e92609790c..bb914616373 100644
--- a/dlls/ncrypt/ncrypt.spec
+++ b/dlls/ncrypt/ncrypt.spec
@@ -101,7 +101,7 @@
 @ stub NCryptUnprotectKey
 @ stub NCryptUnprotectSecret
 @ stub NCryptVerifyClaim
-@ stub NCryptVerifySignature
+@ stdcall NCryptVerifySignature(ptr ptr ptr long ptr long long)
 @ stub SslChangeNotify
 @ stub SslComputeClientAuthHash
 @ stub SslComputeEapKeyBlock
diff --git a/dlls/ncrypt/ncrypt_main.c b/dlls/ncrypt/ncrypt_main.c
index 6ee9dc12948..a8e7f4cfaa9 100644
--- a/dlls/ncrypt/ncrypt_main.c
+++ b/dlls/ncrypt/ncrypt_main.c
@@ -282,3 +282,12 @@ SECURITY_STATUS WINAPI NCryptSetProperty(NCRYPT_HANDLE object, const WCHAR *prop
     struct ncrypt_object *ncryptobj = (struct ncrypt_object *)object;
     return set_object_property(ncryptobj, property, input, insize);
 }
+
+SECURITY_STATUS NCryptVerifySignature(NCRYPT_KEY_HANDLE key, VOID *padding_info,
+                                      BYTE *hash_value, DWORD hash_value_size, BYTE *signature,
+                                      DWORD signature_size, DWORD flags)
+{
+    FIXME("(%lx, %lx, %lx, %x, %lx, %x, %x): stub\n", key, padding_info, hash_value, hash_value_size,
+          signature, signature_size, flags);
+    return ERROR_SUCCESS;
+}
-- 
2.32.0




More information about the wine-devel mailing list