Module jose_xchacha20_poly1305

.

Copyright © 2014-2022, Andrew Bennett

Behaviours: jose_block_encryptor.

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

Description

Data Types

additional_authenticated_data()

additional_authenticated_data() = binary()

cipher_text()

cipher_text() = binary()

message()

message() = binary()

plain_text()

plain_text() = binary()

poly1305_mac()

poly1305_mac() = <<_:128>>

xchacha20_key()

xchacha20_key() = <<_:256>>

xchacha20_nonce()

xchacha20_nonce() = <<_:192>>

Function Index

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

Function Details

authenticate/3

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

block_decrypt/4

block_decrypt(X1, Key, IV, X4) -> any()

block_encrypt/4

block_encrypt(X1, Key, IV, X4) -> 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