Paul Vriens : rsaenh: Make hmac test run on all windows versions.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 9 06:03:14 CDT 2006


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

Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date:   Sun Oct  8 14:41:56 2006 +0200

rsaenh: Make hmac test run on all windows versions.

---

 dlls/rsaenh/tests/rsaenh.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 25467d7..13468b9 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -626,12 +626,13 @@ static void test_hmac(void) {
     HCRYPTKEY hKey;
     HCRYPTHASH hHash;
     BOOL result;
-    HMAC_INFO hmacInfo = { CALG_MD2, NULL, 0, NULL, 0 };
+    /* Using CALG_MD2 here fails on Windows 2003, why ? */
+    HMAC_INFO hmacInfo = { CALG_MD5, NULL, 0, NULL, 0 };
     DWORD dwLen;
     BYTE abData[256];
     static const BYTE hmac[16] = { 
-        0xfd, 0x16, 0xb5, 0xb6, 0x13, 0x1c, 0x2b, 0xd6, 
-        0x0a, 0xc7, 0xae, 0x92, 0x76, 0xa3, 0x05, 0x71 };
+        0x1a, 0x7d, 0x49, 0xc5, 0x9b, 0x2d, 0x0b, 0x9c, 
+        0xcf, 0x10, 0x6b, 0xb6, 0x7d, 0x0f, 0x13, 0x32 };
     int i;
 
     for (i=0; i<sizeof(abData)/sizeof(BYTE); i++) abData[i] = (BYTE)i;




More information about the wine-cvs mailing list