additionalData method

void additionalData(
  1. bool meta,
  2. List<int> additionalData
)

Process and add additional data to the Strobe protocol state.

The ad method is used to process and add additional data (AD) to the Strobe protocol state. Additional data is used to update the protocol state without producing output, often for metadata or configuration purposes.

Parameters:

  • meta: A boolean flag indicating whether metadata is included in the operation.
  • additionalData: A list of integers containing the additional data to be processed and added.

Usage:

List<int> metadata = ...; // Additional data or metadata to include.
strobeInstance.additionalData(true, metadata);
// Process and add additional data to the Strobe protocol state.

The additionalData method is a fundamental operation in the Strobe protocol, allowing you to incorporate additional data into the protocol's internal state without producing output.

Implementation

void additionalData(bool meta, List<int> additionalData) {
  operate(meta, StrobeOperation.ad, additionalData, 0, false);
}