jose_chacha20_poly1305_crypto (JOSE v1.11.12)

View Source

Summary

Types

chacha20_key/0

-type chacha20_key() :: <<_:256>>.

chacha20_nonce/0

-type chacha20_nonce() :: <<_:96>>.

poly1305_otk/0

-type poly1305_otk() :: <<_:256>>.

Functions

authenticate(Message, Key, Nonce)

decrypt(CipherText, CipherTag, AAD, IV, CEK)

encrypt(PlainText, AAD, IV, CEK)

poly1305_key_gen(Key, Nonce)

-spec poly1305_key_gen(Key :: chacha20_key(), Nonce :: chacha20_nonce()) -> poly1305_otk().

verify(MAC, Message, Key, Nonce)