paseto_common 0.1.0

Common types for PASETO protocol versions, purposes and key types. Used by the rusty_paseto and paserk crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

/// Potential errors from attempting to use a Key structure
#[derive(Debug, Error)]
pub enum PasetoKeyError {
    ///Unspecified error when attepting to use the system's RNG
    #[error("An unspecified RNG error occurred")]
    UnspecifiedError {
        ///Surfaces unspecified errors from ring
        #[from]
        source: ring::error::Unspecified,
    },
}