Home
last modified time | relevance | path

Searched refs:hProvider (Results 1 – 4 of 4) sorted by relevance

/third_party/openssl/crypto/rand/
Drand_win.c46 HCRYPTPROV hProvider; in rand_pool_acquire_entropy() local
85 if (CryptAcquireContextW(&hProvider, NULL, NULL, PROV_RSA_FULL, in rand_pool_acquire_entropy()
87 if (CryptGenRandom(hProvider, bytes_needed, buffer) != 0) in rand_pool_acquire_entropy()
90 CryptReleaseContext(hProvider, 0); in rand_pool_acquire_entropy()
104 if (CryptAcquireContextW(&hProvider, NULL, in rand_pool_acquire_entropy()
107 if (CryptGenRandom(hProvider, bytes_needed, buffer) != 0) in rand_pool_acquire_entropy()
110 CryptReleaseContext(hProvider, 0); in rand_pool_acquire_entropy()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DRandomNumberGenerator.cpp60 HCRYPTPROV hProvider; in getRandomBytes() local
61 if (CryptAcquireContext(&hProvider, 0, 0, PROV_RSA_FULL, in getRandomBytes()
63 ScopedCryptContext ScopedHandle(hProvider); in getRandomBytes()
64 if (CryptGenRandom(hProvider, Size, static_cast<BYTE *>(Buffer))) in getRandomBytes()
/third_party/abseil-cpp/absl/random/internal/
Dseed_material.cc76 BCRYPT_ALG_HANDLE hProvider; in ReadSeedMaterialFromOSEntropyImpl() local
78 ret = BCryptOpenAlgorithmProvider(&hProvider, BCRYPT_RNG_ALGORITHM, in ReadSeedMaterialFromOSEntropyImpl()
85 hProvider, // provider in ReadSeedMaterialFromOSEntropyImpl()
89 BCryptCloseAlgorithmProvider(hProvider, 0); in ReadSeedMaterialFromOSEntropyImpl()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dseed_material.cc89 BCRYPT_ALG_HANDLE hProvider; in ReadSeedMaterialFromOSEntropyImpl() local
91 ret = BCryptOpenAlgorithmProvider(&hProvider, BCRYPT_RNG_ALGORITHM, in ReadSeedMaterialFromOSEntropyImpl()
98 hProvider, // provider in ReadSeedMaterialFromOSEntropyImpl()
102 BCryptCloseAlgorithmProvider(hProvider, 0); in ReadSeedMaterialFromOSEntropyImpl()