AesCbcEncryptor constructor

AesCbcEncryptor(
  1. Aes _cipher,
  2. Uint8List iv
)

Creates an encryptor over cipher starting from iv (16 bytes).

Implementation

AesCbcEncryptor(this._cipher, Uint8List iv) : _prev = Uint8List(16) {
  if (iv.length != 16) {
    throw ArgumentError.value(iv.length, 'iv', 'must be 16 bytes');
  }
  _prev.setAll(0, iv);
}