dvb-csa 0.1.0

DVB Common Scrambling Algorithm (CSA2) — pure-Rust, oracle-validated, with a bitsliced fast path.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Error types for the DVB-CSA crate.
use thiserror::Error;

/// Errors that can occur during DVB-CSA operations.
#[non_exhaustive]
#[derive(Error, Debug)]
pub enum Error {
    /// 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,
    },
}