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-calthat forwards theTryCryptoRngtrait 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 therandcrate for easy setup.⚠️ Security note: The
make_rngfunction used in this feature comes with own security notes through the use ofThreadRng.
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.