Module jose_jwa_xchacha20_poly1305

XChaCha: eXtended-nonce ChaCha and AEAD_XChaCha20_Poly1305 See https://tools.ietf.org/html/draft-irtf-cfrg-xchacha.

Copyright © 2014-2022, Andrew Bennett

Behaviours: jose_xchacha20_poly1305.

Authors: Andrew Bennett (potatosaladx@gmail.com).

Description

XChaCha: eXtended-nonce ChaCha and AEAD_XChaCha20_Poly1305 See https://tools.ietf.org/html/draft-irtf-cfrg-xchacha

Function Index

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

Function Details

authenticate/3

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

decrypt/5

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

encrypt/4

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

verify/4

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


Generated by EDoc