Copyright © 2014-2022, Andrew Bennett
Behaviours: jose_chacha20_poly1305.
Authors: Andrew Bennett (potatosaladx@gmail.com).
chacha20_key() = <<_:256>>
chacha20_nonce() = <<_:96>>
poly1305_otk() = <<_:256>>
| authenticate/3 | |
| decrypt/5 | |
| encrypt/4 | |
| poly1305_key_gen/2 | |
| verify/4 |
authenticate(Message, Key, Nonce) -> any()
decrypt(CipherText, CipherTag, AAD, IV, CEK) -> any()
encrypt(PlainText, AAD, IV, CEK) -> any()
poly1305_key_gen(Key::chacha20_key(), Nonce::chacha20_nonce()) -> poly1305_otk()
verify(MAC, Message, Key, Nonce) -> any()
Generated by EDoc