Blake2s class
The BLAKE2s (32-bit) flavor of the BLAKE2 cryptographic hash function.
Constructors
Properties
- bitLength → int
-
The bit-length of the integers being used in the hashing function.
final
- digestLength → int
-
The length of the digest, defaults to
32
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- iv ↔ Uint32List?
-
Initialization vector
getter/setter pairoverride-getter
- key → Uint8List?
-
If set, key is used for the first round of compression.
final
- personalization → Uint8List?
-
If set, personalization acts as a second salt.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- salt → Uint8List?
-
If set, salt is used to modify the initialization vector.
final
- sigma → Uint8List
-
Offsets for each round within the memory block.
final
Methods
-
digest(
) → Uint8List -
Calculates the digest of all data passed via
update()
.inherited -
digestToString(
) → String -
Returns the calculated digest as a string.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Resets the hash to its initial state, effectively
clearing all values added via
update()
.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Uint8List? data) → void -
Update hash content with the given data.
inherited
-
updateWithString(
String? data) → void -
Converts
data
to a Uint8List and passes it toupdate()
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromStrings(
{int digestLength = 32, String? key, String? salt, String? personalization, Uint32List? iv}) → Blake2s -
Returns a Blake2s instance using
Strings
for thekey
,salt
, andpersonalization
arguments.