DVB Common Scrambling Algorithm (CSA2) — pure-Rust, with an optional bitsliced 64-payload batch fast path, validated against libdvbcsa known-answer vectors.
//! Error types for the DVB-CSA crate.
usethiserror::Error;/// Errors that can occur during DVB-CSA operations.
#[non_exhaustive]#[derive(Error, Debug)]pubenumError{/// The provided buffer is too short for the requested operation.
#[error("buffer too short: need {need} bytes, have {have}")]
BufferTooShort {/// The number of bytes required.
need:usize,/// The number of bytes available.
have:usize,},}