CTRState constructor

CTRState(
  1. BlockCipher cipher,
  2. Uint8List counter, {
  3. Iterable<int> encryptedCounterBuffer = const [],
})

Implementation

CTRState(this.cipher, Uint8List counter,
    {Iterable<int> encryptedCounterBuffer = const []})
    : _counter = Uint8List.fromList(counter),
      encryptedCounterBuffer = Queue.from(encryptedCounterBuffer);