rusty_paseto 0.10.0

A type-driven, ergonomic alternative to JWT for secure stateless PASETO tokens.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "chacha20poly1305")]
use chacha20poly1305::XNonce;

#[cfg(feature = "chacha20poly1305")]
struct EncryptionNonce(XNonce);

#[cfg(feature = "chacha20poly1305")]
impl AsRef<XNonce> for EncryptionNonce {
    fn as_ref(&self) -> &XNonce {
        &self.0
    }
}