x-wing 0.1.1

Pure Rust implementation of the X-Wing Key Encapsulation Mechanism (draft 06)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::fmt;

/// Error type when decapsulation failed.
#[derive(Clone, Copy, Debug)]
pub struct DecapsulationError;

impl core::error::Error for DecapsulationError {}

impl fmt::Display for DecapsulationError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "decapsulation error")
    }
}