crypto_api_osrandom 0.1.2

An interface to the OS' secure random number generator for `crypto_api`
docs.rs failed to build crypto_api_osrandom-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: crypto_api_osrandom-0.2.0

License License Travis CI AppVeyor CI

crypto_api_osrandom

Welcome to crypto_api_osrandom 🎉

About

This crate implements access to your operating system's cryptographically secure random number generator via crypto_api.

APIs used

The following native APIs are used:

  • macOS/iOS: SecRandomCopyBytes from the security framework
  • FreeBSD/OpenBSD/NetBSD: arc4random_buf (which does not use ARC4 anymore but a secure PRF like ChaCha20)
  • Windows: CryptGenRandom with PROV_RSA_FULL as provider
  • Linux: getrandom for glibc versions >= 2.25 or /dev/urandom for ancient distributions

Dependencies

Because this code implements the crypto_api, it depends on the crypto_api-crate. Otherwise, it's dependency less.