From: André Hentschel Subject: rsaenh/tests: Adjust length value to pass on Win 10 (try 2) Message-Id: <55F9DCAD.3050902@dawncrow.de> Date: Wed, 16 Sep 2015 23:18:37 +0200 If you look at the formular a bit closer you'll notice I change the factor from 3.5 (which looks strange enough) to 4 try 2: And if I look a bit closer I can shorten it even more :D --- dlls/rsaenh/tests/rsaenh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index da74ffb..439d253 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -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); -- 1.9.1