PaddingAlgorithm class abstract
Padding algorithm for block ciphers.
Available algorithms
- PaddingAlgorithm.zero
- PaddingAlgorithm.pkcs7 (PKCS7 / PKCS5)
Constructors
- PaddingAlgorithm()
-
const
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
-
getBlockPadding(
int blockLength, Uint8List bytes) → int - Computes length of padding.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paddingLength(
int blockLength, int dataLength) → int - Computes padding length.
-
setBlockPadding(
int blockLength, Uint8List bytes, int start) → void -
Fills
bytes
with padding, starting atstart
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- pkcs7 → const PaddingAlgorithm
- PKCS7 padding (RFC 5652).
- zero → const PaddingAlgorithm
- Zero-padding.