Trait ring_compat::aead::Buffer
source · pub trait Buffer: AsRef<[u8]> + AsMut<[u8]> {
// Required methods
fn extend_from_slice(&mut self, other: &[u8]) -> Result<(), Error>;
fn truncate(&mut self, len: usize);
// Provided methods
fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
}
Available on crate feature
aead
only.Expand description
In-place encryption/decryption byte buffers.
This trait defines the set of methods needed to support in-place operations
on a Vec
-like data type.