COSE.Messages.Encrypt (cose v0.11.20)

Summary

Functions

build(payload, recipient \\ %{}, phdr \\ %{}, uhdr \\ %{})

decode(encoded_msg)

decrypt(msg, key, iv, external_aad \\ <<>>)

decrypt_decode(msg_cbor, key)

enc_structure(msg, external_aad \\ <<>>)

encode(msg)

encrypt(msg, key, iv, external_aad \\ <<>>)

encrypt_encode(msg, key, iv)

split_encrypted_tag(ciphertext, tag_len \\ 8)