Make the public and private DRBG thread local
authorKurt Roeckx <kurt@roeckx.be>
Wed, 7 Mar 2018 18:25:55 +0000 (19:25 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Mon, 19 Mar 2018 14:04:40 +0000 (15:04 +0100)
commit7caf122e717e79afcb986fe217e77a630b67bf4c
tree5ced62615263082ab998c18c860b44c9b442ca39
parent4e6647506331fc3b3ef5b23e5dbe188279ddd575
Make the public and private DRBG thread local

This avoids lock contention.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/5547)
crypto/include/internal/cryptlib_int.h
crypto/include/internal/rand_int.h
crypto/init.c
crypto/rand/drbg_lib.c
crypto/rand/rand_lib.c