Skip to main content

Module token

Module token 

Source

Structs§

Token
TokenDecryptStream
An incremental Token::decrypt_chunks: the token’s bytes are fed in order with TokenDecryptStream::update, and TokenDecryptStream::finish checks the tag and returns the plaintext. The last 32 bytes seen are held back as the candidate tag; everything before them is authenticated and decrypted as it arrives. Decrypted bytes are not authentic until finish accepts the tag.

Enums§

TokenError

Constants§

TOKEN_OVERHEAD