View Source jose_chacha20_poly1305_crypto (JOSE v1.11.10)

Summary

Types

-type chacha20_key() :: <<_:256>>.
-type chacha20_nonce() :: <<_:96>>.
-type poly1305_otk() :: <<_:256>>.

Functions

Link to this function

authenticate(Message, Key, Nonce)

View Source
Link to this function

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

View Source
Link to this function

encrypt(PlainText, AAD, IV, CEK)

View Source
Link to this function

poly1305_key_gen(Key, Nonce)

View Source
-spec poly1305_key_gen(Key :: chacha20_key(), Nonce :: chacha20_nonce()) -> poly1305_otk().
Link to this function

verify(MAC, Message, Key, Nonce)

View Source