27 #if defined(ASCON_TRNG_WINDOWS)
40 HCRYPTPROV provider = 0;
42 if (CryptAcquireContextW
43 (&provider, 0, 0, PROV_RSA_FULL,
44 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
45 if (CryptGenRandom(provider, outlen, out))
47 CryptReleaseContext(provider, 0);
51 memset(out, 0, outlen);
int ascon_trng_generate(unsigned char *out, size_t outlen)
Generates a buffer of bytes from the system TRNG source.
Access to the system's random number source.