PaddingAlgorithm class abstract
An abstract class that defines a padding algorithm for AES encryption and decryption.
The PaddingAlgorithm class provides methods to add padding bytes during encryption
and to remove padding bytes during decryption. Padding ensures that the input data
size is compatible with the block size required by AES encryption algorithms.
Constructors
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
-
addPadding(
List< int> data) → List<int> -
Adds padding bytes to the given
datato make its length a multiple of the AES block size. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removePadding(
List< int> data) → List<int> -
Removes padding bytes from the given
data, restoring it to its original unpadded form. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited