usethiserror::Error;/// Errors that can occur during E2E protection or checking.
#[derive(Error, Debug)]pubenumError{/// The output buffer is too small to hold the protected payload.
#[error("output buffer too small: need {needed} bytes, got {actual}")]
BufferTooSmall {/// The number of bytes required.
needed:usize,/// The number of bytes available.
actual:usize,},}