Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rust Crypto Dependencies

Cryptographic primitives & spec implementations

CSPRNG

We use rand in combination with rand-chacha to achieve a proper CSPRNG

  • No audits are known of this crate, but it is the de facto for the Rust ecosystem and is used by pretty much any crate needing a randomness source.
  • Note: We use getrandom under the hood to retrieve random data. Other than de facto OS entropy sources, we can inject entropy at will
    • On this topic, the entropy sources per platform are detailed here