AesCbcDecryptor class final
AES-CBC decryption (SP 800-38A) as an incremental whole-block transform.
Used by 7z (AES-256), RAR5 (AES-256), and RAR4 (AES-128), all of which pad ciphertext to 16 bytes and truncate the plaintext by known size, so there is no padding scheme here: callers hand in complete blocks and slice the output themselves. Sequential calls chain (the last ciphertext block carries over), matching a stream decrypted in chunks.
Constructors
- AesCbcDecryptor(Aes _cipher, Uint8List iv)
-
Creates a decryptor over
cipherstarting fromiv(16 bytes).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decryptInPlace(
Uint8List data, [int start = 0, int? end]) → void -
Decrypts
data[start..end)in place; the length must be a multiple of 16. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited