Artyom Pavlov
Artyom Pavlov
For intra-doc links we can use the following trick: ```md This is an [`Item`] link in README. [`Item`]: https://docs.rs/crate/item.html ``` lib.rs: ```rs // Re-define intra-crate links //! [`Item`]: Item # wrapper which handles buffering of generated RNG blocks. We want to zeroize the `results` field in `chacha20` AND we do not want...
>what calls the drop method of Generator, and what's the problem with that? The `Drop` impl of `BlockRng`. The `Generator::drop` method has nothing to do with the declared functionality of...
In a certain (uncharitable) sense, yes. But while `rand_core`is indeed my primary motivation, I believe that the `observe` function would be useful even without it.
>Perhaps rand_core could just implement volatile writes? Not everyone needs RNG buffer zeroization. Introducing a crate feature for it is also not desirable. I think that zeroization should be handled...
>Ensuring the entire operation is secure relies on implicit coupling between those two crates which the user is orchestrating Yes, it's unfortunate, but sometimes there is just no other way....
>at least on platforms that support asm! where we have guarantees. Well, IIUC even `asm!` does not provide 100% guarantees here, i.e. a "sufficiently smart" compiler may in theory analyze...