[PATCH 0/1] MR1968: Fix a problem caused by the recent official commit "rsaenh: Factor out...
Fix a problem caused by the recent official commit "rsaenh: Factor out block_encrypt() function." that would cause DES encryption errors -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1968
From: sonyps5201314 <sonyps5201314(a)gmail.com> --- dlls/rsaenh/rsaenh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c index 3a2d7126ca4..23d8e2250da 100644 --- a/dlls/rsaenh/rsaenh.c +++ b/dlls/rsaenh/rsaenh.c @@ -2668,6 +2668,9 @@ BOOL WINAPI RSAENH_CPEncrypt(HCRYPTPROV hProv, HCRYPTKEY hKey, HCRYPTHASH hHash, if (!block_encrypt(pCryptKey, pbData, pdwDataLen, dwBufLen, Final, &pCryptKey->context, pCryptKey->abChainVector)) return FALSE; + if (pbData == NULL) { + return TRUE; + } } else if (GET_ALG_TYPE(pCryptKey->aiAlgid) == ALG_TYPE_STREAM) { if (pbData == NULL) { *pdwDataLen = dwBufLen; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1968
This merge request was closed by Alexandre Julliard. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1968
Superseded by 1b98e41e82ef89e71e6a7c3fc183dbf75bb4b49a, thank you for catching this! -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1968#note_113359
participants (3)
-
Alexandre Julliard (@julliard) -
Jackie Jiang (@sonyps5201314) -
sonyps5201314