commit | dfc2948c73f4f91ad5a0a27836580ba3b0ce2578 | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@chromium.org> | Tue Nov 04 13:53:02 2014 -0500 |
committer | Adam Langley <agl@google.com> | Wed Nov 05 00:42:07 2014 +0000 |
tree | dd713b92ded1ca2d166061047eac82f1b454c09b | |
parent | 0e2a3cf98ac19db1a9cac9aa22ad8086d5be11e9 [diff] |
Call RtlGenRandom directly in RAND_bytes. It works within the Chromium sandbox, unlike CryptAcquireContext and CryptGenRandom which requires the HCRYPTPROV be pre-warmed and held within the sandbox. Also account for the mismatch between size_t and ULONG/DWORD. See https://chromium.googlesource.com/chromium/src/+/master/base/rand_util_win.cc BUG=crbug.com/429919 Change-Id: Ia684124736c0c039ca9410509973192a597856ab Reviewed-on: https://boringssl-review.googlesource.com/2190 Reviewed-by: Adam Langley <agl@google.com>