Expand description
Reader and writer traits to generalise over writing to and reading from buffers in memory and cryptographic constructions which take variable length input or generate variable length output.
Structs§
- Write
TooLarge Error - Requested a write larger than
self.capacity().
Traits§
- Crypto
Reader - Marker trait to indicate that the output of a
Readercan be considered to be pseudo random. - Reader
- An object from which bytes can be read.
- Writer
- An object to which bytes can be written.
Functions§
- check_
write_ size - Helper function checking that
requested <= capacityand creating an appropriateWriteTooLargeErrorif this is not the case.