CBC constructor
Implementation
CBC(BuBlockCipher cipher, List<int> iv) {
if (iv.length != cipher.blockSize) {
throw CoreErrors.invalidOperationArguments(
"CBC",
name: "iv",
reason: "Invalid IV bytes length.",
);
}
_cipher = cipher;
_prevBlock = iv.clone();
_tmpBlock = List<int>.filled(cipher.blockSize, 0);
}