rsaenh: Fix the accepted RC2 key length, based on a test case by Dan Kegel.

Hans Leidekker hans at codeweavers.com
Tue Oct 13 04:07:41 CDT 2009


On Tuesday 13 October 2009 08:46:59 am Dmitry Timoshkov wrote:

> +    ret = pCryptImportKey(provider, (BYTE*)&key_blob,
> +                      sizeof(BLOBHEADER)+sizeof(DWORD)+key_length,
> +                      0, CRYPT_IPSEC_HMAC_KEY, &hkey);
> +    ok(ret, "CryptImportKey error %u\n", GetLastError());
> +
> +    pCryptReleaseContext(provider, 0);

You should clean up the key as well.

 -Hans



More information about the wine-devel mailing list