SHAKE128 class
Implementation of SHAKE128 (XOF) based on Keccak as defined in FIPS 202. SHAKE128 allows generating an output of arbitrary length from an input.
Characteristics of SHAKE128:
- Security: 128 bits
- Rate: 168 bytes (r=1344 bits)
- Padding according to SHAKE (0x1F)
This implementation:
- Absorbs the input using 'absorb'.
- After 'finalizeAbsorption', you can extract (squeeze) as many bytes as needed.
- The auxiliary function 'shake128(input, outlen)' facilitates obtaining the desired output in a single call.
Constructors
- SHAKE128()
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
-
absorb(
Uint8List input) → void - Absorbs data into the state. Can be called multiple times before finalizing.
-
finalizeAbsorption(
) → void - Finalizes the absorption phase. Applies SHAKE padding (0x1F) and prepares for squeezing.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
squeeze(
int length) → Uint8List - Extracts 'length' bytes. Can be called as many times as desired after absorption is finalized.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited