decrypt method
Decrypt the given bytes.
inp
: the total encrypted bytesinpOff
: the byte offset to start decryption atinpLength
: the number of bytes (length) to decryptout
: the buffer to write the decrypted output inoutOff
: the byte offset to write the decrypted output to
returns the length of the new decrypted output
Implementation
@override
FutureOr<int> decrypt(
Uint8List inp, int inpOff, int inpLength, Uint8List out, int outOff) {
var iv = inp.view(inpOff, 16);
return _cipher.decrypt(iv, inp, inpOff + 16, inpLength - 16, out, 0);
}