[][src]Module bundled_crypto::token::paseto::v1::local

The PASETO version one protocol. Implementation of the PASETO version 1, opaque token.

Modules

error

Structs

AuthKey

A newtype struct differentiating the auth and encryption keys.

EncryptionKey

A newtype struct differentiating the auth and encryption keys.

Constants

HEADER

The agglomerated [Header] for this protocol.

PURPOSE

The purpose string for this protocol.

VERSION

The version string for this protocol.

Functions

decrypt

Decrypts, decodes, and unpacks a [Packed] token into a [Data] token.

encrypt

Encrypts, encodes, and packs a [Data] token into a [Packed] token.

split_key

Takes the nonce and a static key, creating the auth and encrpytion keys.