sntrup 0.1.0

Rust implementation of the Streamlined NTRU Prime KEM for all parameter sizes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Error types for sntrup operations.

/// Errors returned by sntrup operations.
#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
pub enum Error {
    /// Byte slice has the wrong length for conversion.
    #[error("invalid size: expected {expected} bytes, got {actual}")]
    InvalidSize {
        /// Expected size.
        expected: usize,
        /// Provided size.
        actual: usize,
    },
}