HKDF class

A Dart implementation of the HKDF (HMAC-based Key Derivation Function) as defined in RFC 5869. This class supports both the extract and expand phases.

Constructors

HKDF.new({required List<int> ikm, required HashFunc hash, int length = 32, List<int>? salt, List<int>? info, bool hkdfExtract = true})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
info List<int>
Optional context/application-specific information
final
length int
Desired length of output keying material (OKM)
final
ork List<int>
Pseudorandom key (output of HKDF-Extract if enabled)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

derive({List<int> info = const []}) List<int>
Derives the final output keying material (OKM) using HKDF-Expand
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited