Mac

Mojo trait 🡭

Mac

Aliases

  • TAG_SIZE =

Implemented traits

AnyType

Methods

update

fn def update[o: Origin[mut=o.mut]](mut self, data: Span[UInt8, o])

Absorb more input.

Parameters:

  • o (Origin[mut=mut])

Args:

  • self (Self)
  • data (Span[UInt8, o])

Raises:

finalize

fn def finalize(var self) -> Array[UInt8, _Self.TAG_SIZE]

Consume self and return the TAG_SIZE-byte authentication tag.

Args:

  • self (Self)

Returns:

Array[UInt8, _Self.TAG_SIZE]

Raises:

reset

fn def reset(mut self)

Reset the accumulator to its initial state while keeping the key.

Args:

  • self (Self)