UnsealingVersion

Trait UnsealingVersion 

Source
pub trait UnsealingVersion<P: Purpose>: HasKey<P> {
    // Required method
    fn unseal<'a>(
        key: &<Self as HasKey<P>>::Key,
        encoding: &'static str,
        payload: &'a mut [u8],
        footer: &[u8],
        aad: &[u8],
    ) -> Result<&'a [u8], PasetoError>;
}
Expand description

This PASETO implementation can decrypt/verify tokens.

Required Methods§

Source

fn unseal<'a>( key: &<Self as HasKey<P>>::Key, encoding: &'static str, payload: &'a mut [u8], footer: &[u8], aad: &[u8], ) -> Result<&'a [u8], PasetoError>

Do not call this method directly. Use SealedToken::unseal instead.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§