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

Signed-off-by: André Hentschel <nerv@dawncrow.de>
This commit is contained in:
André Hentschel 2015-10-01 00:04:20 +02:00 committed by Alexandre Julliard
parent a66f4e521c
commit 86b1e74f5c
1 changed files with 1 additions and 2 deletions

View File

@ -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);