processAADBytes method

  1. @override
void processAADBytes(
  1. Uint8List inp,
  2. int inOff,
  3. int len
)
override

Implementation

@override
void processAADBytes(Uint8List inp, int inOff, int len) {
  if (inOff < 0) {
    throw ArgumentError('\'inOff\' cannot be negative');
  }
  if (len < 0) {
    throw ArgumentError('\'len\' cannot be negative');
  }
  if (inOff > (inp.length - len)) {
    throw ArgumentError('Input buffer too short');
  }

  checkAAD();

  if (len > 0) {
    _aadCount = incrementCount(_aadCount, len, AADLimit);
    poly1305.update(inp, inOff, len);
  }
}