Commit 86b1e74f authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

rsaenh/tests: Adjust length value to pass on Win 10.

parent a66f4e52
......@@ -1971,8 +1971,7 @@ static void test_import_private(void)
* actual buffer. The private exponent can be omitted, its length is
* inferred from the passed-in length parameter.
*/
dwLen = sizeof(BLOBHEADER) + sizeof(RSAPUBKEY) +
rsaPubKey->bitlen / 8 + 5 * rsaPubKey->bitlen / 16;
dwLen = sizeof(BLOBHEADER) + sizeof(RSAPUBKEY) + rsaPubKey->bitlen / 2;
for (; dwLen < sizeof(abPlainPrivateKey); dwLen++)
{
result = CryptImportKey(hProv, abPlainPrivateKey, dwLen, 0, 0, &hKeyExchangeKey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment