Crates.io | crypto_api_osrandom |
lib.rs | crypto_api_osrandom |
version | 0.2.0 |
source | src |
created_at | 2019-03-12 18:06:20.223804 |
updated_at | 2022-06-17 01:27:26.75543 |
description | An interface to the OS' secure random number generator for `crypto_api` |
homepage | |
repository | https://github.com/KizzyCode/crypto_api_osrandom |
max_upload_size | |
id | 120314 |
size | 19,215 |
Welcome to crypto_api_osrandom
🎉
This crate implements access to your operating system's cryptographically secure random number
generator via crypto_api
.
The following native APIs are used:
SecRandomCopyBytes
from the security frameworkarc4random_buf
(which does not use ARC4 anymore but a secure PRF like
ChaCha20)CryptGenRandom
with PROV_RSA_FULL
as providergetrandom
for glibc versions >= 2.25 or /dev/urandom
for ancient distributions