beforeData method

  1. @protected
void beforeData({
  1. required SecretKeyData secretKey,
  2. required List<int> nonce,
  3. required List<int> aad,
})

A protected method required by DartChacha20Poly1305AeadMacAlgorithm implementation.

Implementation

@protected
void beforeData({
  required SecretKeyData secretKey,
  required List<int> nonce,
  required List<int> aad,
}) {
  if (aad.isNotEmpty) {
    throw ArgumentError.value(aad, 'aad');
  }
}