Module jose_jwa_chacha20_poly1305

ChaCha20 and Poly1305 for IETF Protocols See https://tools.ietf.org/html/rfc7539.

Copyright © 2014-2016, Andrew Bennett

Behaviours: jose_chacha20_poly1305.

Authors: Andrew Bennett (andrew@pixid.com).

Description

ChaCha20 and Poly1305 for IETF Protocols See https://tools.ietf.org/html/rfc7539

Function Index

authenticate/3
decrypt/5
encrypt/4
verify/4

Function Details

authenticate/3

authenticate(Message, Key, Nonce) -> any()

decrypt/5

decrypt(CipherText, CipherTag, AAD, IV, CEK) -> any()

encrypt/4

encrypt(PlainText, AAD, IV, CEK) -> any()

verify/4

verify(MAC, Message, Key, Nonce) -> any()


Generated by EDoc