sendMac method

List<int> sendMac(
  1. bool meta,
  2. int outputLength
)

Generate and append a Message Authentication Code (MAC) to data in the Strobe protocol.

Parameters:

  • meta: A boolean flag indicating whether metadata is included in the operation.
  • outputLength: The desired output length of the generated MAC.

Implementation

List<int> sendMac(bool meta, int outputLength) {
  return operate(
    meta,
    StrobeOperation.sendMac,
    List.empty(),
    outputLength,
    false,
  );
}