Module jose_chacha20_poly1305_crypto

.

Copyright © 2014-2022, Andrew Bennett

Behaviours: jose_chacha20_poly1305.

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

Description

Data Types

chacha20_key()

chacha20_key() = <<_:256>>

chacha20_nonce()

chacha20_nonce() = <<_:96>>

poly1305_otk()

poly1305_otk() = <<_:256>>

Function Index

authenticate/3
decrypt/5
encrypt/4
poly1305_key_gen/2
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()

poly1305_key_gen/2

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

verify/4

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


Generated by EDoc