Module: wine Branch: master Commit: 6d9bca7d94f471056b79d2495779837a63c36b31 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6d9bca7d94f471056b79d24957...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Tue Nov 25 17:02:48 2008 +0100
rsaenh/tests: Use a 40-bit session key instead of 56-bit.
---
dlls/rsaenh/tests/rsaenh.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index a2636b5..9e14558 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -1046,13 +1046,13 @@ static void test_mac(void) { BOOL result; DWORD dwLen; BYTE abData[256], abEnc[264]; - static const BYTE mac[8] = { 0x0d, 0x3e, 0x15, 0x6b, 0x85, 0x63, 0x5c, 0x11 }; + static const BYTE mac_40[8] = { 0xb7, 0xa2, 0x46, 0xe9, 0x11, 0x31, 0xe0, 0xad}; int i;
for (i=0; i<sizeof(abData)/sizeof(BYTE); i++) abData[i] = (BYTE)i; for (i=0; i<sizeof(abData)/sizeof(BYTE); i++) abEnc[i] = (BYTE)i;
- if (!derive_key(CALG_RC2, &hKey, 56)) return; + if (!derive_key(CALG_RC2, &hKey, 40)) return;
dwLen = 256; result = CryptEncrypt(hKey, 0, TRUE, 0, abEnc, &dwLen, 264); @@ -1069,7 +1069,7 @@ static void test_mac(void) { result = CryptGetHashParam(hHash, HP_HASHVAL, abData, &dwLen, 0); ok(result && dwLen == 8, "%08x, dwLen: %d\n", GetLastError(), dwLen);
- ok(!memcmp(abData, mac, sizeof(mac)), "MAC failed!\n"); + ok(!memcmp(abData, mac_40, sizeof(mac_40)), "MAC failed!\n");
result = CryptDestroyHash(hHash); ok(result, "%08x\n", GetLastError());