Trait aead::Buffer[][src]

pub trait Buffer: AsRef<[u8]> + AsMut<[u8]> {
    fn extend_from_slice(&mut self, other: &[u8]) -> Result<()>;
fn truncate(&mut self, len: usize); fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... } }
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.

Required methods

Extend this buffer from the given slice

Truncate this buffer to the given size

Provided methods

Get the length of the buffer

Is the buffer empty?

Implementations on Foreign Types