Work around a bug in the NCryptSignHash implementation of some smartcards.
commit52850c1e665f3f18e3e6d6b9c46c7763e858c041
authordavidben <davidben@chromium.org>
Fri, 27 Mar 2015 20:24:45 +0000 (27 13:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 27 Mar 2015 20:26:02 +0000 (27 20:26 +0000)
treeb2171315566eb2a38081b735293db5e8ba1fd4f1
parent9492bac28d13c8affd501ec737cc8311f3c5a546
Work around a bug in the NCryptSignHash implementation of some smartcards.

Some smartcards do not properly handle the output length (either bounds
checking or returning the output size) when the output buffer is non-NULL.
Work around those by calling twice despite already having a pre-allocated
buffer.

BUG=470204

Review URL: https://codereview.chromium.org/1037123002

Cr-Commit-Position: refs/heads/master@{#322632}
net/ssl/openssl_platform_key_win.cc