rsaenh(2/3): Call setup_key whenever the IV is reset
Juan Lang
juan.lang at gmail.com
Mon Sep 10 17:06:41 CDT 2007
CPEncrypt/CPDecrypt depend on abChainVector being set.
--Juan
-------------- next part --------------
From 9255f1ce0ea6c8c1d692f4ce6bb33fe9a151160a Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Mon, 10 Sep 2007 15:04:58 -0700
Subject: [PATCH] Call setup_key whenever the IV is reset: CPEncrypt/CPDecrypt depend on
abChainVector being set.
---
dlls/rsaenh/rsaenh.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index 5221698..6ec3741 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -2707,6 +2707,7 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTP
case KP_IV:
memcpy(pCryptKey->abInitVector, pbData, pCryptKey->dwBlockLen);
+ setup_key(pCryptKey);
return TRUE;
case KP_SCHANNEL_ALG:
--
1.4.1
More information about the wine-patches
mailing list