AeadEncryptable
Mojo trait 🡭
AeadEncryptable
Encryption of an AEAD scheme.
Provides confidentiality for data and integrity for both data and the
associated data aad, producing a tag_size-byte tag.
Implemented traits
AnyType
Methods
encrypt
fn def encrypt[tag_size: Int, aad_o: Origin[mut=aad_o.mut], o: MutOrigin](mut self, aad: Span[UInt8, aad_o], data: Span[UInt8, o]) -> Array[UInt8, tag_size]Encrypt data in place and return the tag_size-byte tag.
Parameters:
- tag_size (
Int) - aad_o (
Origin[mut=mut]) - o (
MutOrigin)
Args:
- self (
Self) - aad (
Span[UInt8, aad_o]) - data (
Span[UInt8, o])
Returns:
Array[UInt8, tag_size]
Raises: