embedded-cal-rand 0.2.0

Making a cryptographically secure random number generator accessible in embedded-cal
Documentation

embedded-cal-rand: Making a cryptographically secure random number generator accessible in embedded-cal

This crate provides two things:

  • By default, a narrowly scoped extender for embedded-cal that forwards the TryCryptoRng trait into a given RNG, whereas other cryptographic operations are forwarded to the underlying component.

  • With the feature new_from_sys, a constructor for such a wrapper that uses the rand crate for easy setup.

    ⚠️ Security note: The make_rng function used in this feature comes with own security notes through the use of ThreadRng.

Using this crate

This crate is rarely used directly, because implementations of embedded-cal on embedded systems generally also provide access to that platform's random number generator, and software implementations used on standard systems provide their own constructors for standalone operation that includes a random number generator. (The latter are the main motivation for this crate, as standalone functionality is implemented in terms of this crate).

Contributing, license and other metadata

See the main project README for metadata topics such as supported Rust versions (MSRV), citing embedded-cal, licenses, and how to contribute.