DartBlake2b class
Blake2b implemented in pure Dart.
For examples and more information about the algorithm, see documentation for the class Blake2b.
- Inheritance
-
- Object
- HashAlgorithm
- Blake2b
- DartBlake2b
- Mixed-in types
Constructors
- DartBlake2b({int hashLengthInBytes = Blake2b.defaultHashLengthInBytes})
-
const
Properties
- blockLengthInBytes → int
-
The internal block size in bytes. This information is required by some
algorithms such as Hmac.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashLengthInBytes → int
-
Digest size in bytes.
finalinherited
- keyStreamUsed → int
-
Number of bytes in key stream used to initialize the MAC algorithm.
no setterinherited
- macLength → int
-
Number of bytes in the message authentication code.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsAad → bool
-
Whether the algorithm supports Associated Authenticated Data (AAD).
no setterinherited
- supportsKeyStreamIndex → bool
-
Whether the algorithm supports key stream index.
no setterinherited
Methods
-
afterData(
) → void -
inherited
-
beforeData(
{required SecretKeyData secretKey, required List< int> nonce, List<int> aad = const []}) → void -
inherited
-
calculateMac(
List< int> bytes, {required SecretKey secretKey, List<int> nonce = const <int>[], List<int> aad = const <int>[]}) → Future<Mac> -
Calculates message authentication code.
inherited
-
calculateMacSync(
List< int> bytes, {required SecretKeyData secretKeyData, required List<int> nonce, List<int> aad = const <int>[]}) → Mac -
Computes a MAC synchronously (unlike calculateMac).
inherited
-
checkParameters(
{int? length, required SecretKey secretKey, required int nonceLength, required int aadLength, required int keyStreamIndex}) → void -
Checks parameters and throws ArgumentError if they are invalid.
inherited
-
hash(
List< int> input) → Future<Hash> -
Creates a combined hash code for a number of objects.
inherited
-
hashSync(
List< int> data) → Hash -
Synchronous version of hash.
inherited
-
newHashSink(
) → Blake2bSink -
Constructs a sink for hashing chunks.
override
-
newMacSink(
{required SecretKey secretKey, List< int> nonce = const <int>[], List<int> aad = const <int>[]}) → Future<DartMacSinkMixin> -
Constructs a sink for calculating a Mac.
inherited
-
newMacSinkSync(
{required SecretKeyData secretKeyData, List< int> nonce = const <int>[], List<int> aad = const <int>[]}) → Blake2bSink -
Returns DartMacSinkMixin, which can be used synchronously.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
{int? hashLength}) → DartBlake2b -
Enables you to replace hashLengthInBytes.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
toSync(
) → DartBlake2b -
For synchronous computations, returns a pure Dart implementation of the
hash algorithm.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited