make RNG state thread_local
Some checks failed
CMake / build (OFF, AUTO, SYSTEM, x64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, 32, BUILD, x64, ref, 10, .cmake/32bit.cmake) (push) Has been cancelled
CMake / build (ON, 32, SYSTEM, arm64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, 32, SYSTEM, x64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, MINI, x64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, SYSTEM, arm64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, SYSTEM, x64, broadwell, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, SYSTEM, x64, ref, 10, ) (push) Has been cancelled
Some checks failed
CMake / build (OFF, AUTO, SYSTEM, x64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, 32, BUILD, x64, ref, 10, .cmake/32bit.cmake) (push) Has been cancelled
CMake / build (ON, 32, SYSTEM, arm64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, 32, SYSTEM, x64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, MINI, x64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, SYSTEM, arm64, ref, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, SYSTEM, x64, broadwell, 10, ) (push) Has been cancelled
CMake / build (ON, AUTO, SYSTEM, x64, ref, 10, ) (push) Has been cancelled
This commit is contained in:
committed by
Lorenz Panny
parent
51f76548a6
commit
dd133d7aca
@@ -33,6 +33,7 @@ protection within the United States.
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <rng.h>
|
#include <rng.h>
|
||||||
|
#include <threads.h>
|
||||||
#include "ctr_drbg.h"
|
#include "ctr_drbg.h"
|
||||||
|
|
||||||
#ifdef ENABLE_CT_TESTING
|
#ifdef ENABLE_CT_TESTING
|
||||||
@@ -44,7 +45,7 @@ protection within the United States.
|
|||||||
#define RNG_BAD_OUTBUF -2
|
#define RNG_BAD_OUTBUF -2
|
||||||
#define RNG_BAD_REQ_LEN -3
|
#define RNG_BAD_REQ_LEN -3
|
||||||
|
|
||||||
CTR_DRBG_STATE drbg;
|
thread_local CTR_DRBG_STATE drbg;
|
||||||
|
|
||||||
#ifndef CTRDRBG_TEST_BENCH
|
#ifndef CTRDRBG_TEST_BENCH
|
||||||
static
|
static
|
||||||
|
|||||||
Reference in New Issue
Block a user