encrypt method
Encrypt bytes
.
Implementation
@override
Encrypted encrypt(Uint8List bytes, {IV? iv, Uint8List? associatedData}) {
if (iv == null) {
throw StateError('IV is required.');
}
_cipher
..reset()
..init(true, _buildParams(iv));
return Encrypted(_cipher.process(bytes));
}