init method
Init the derivator with its initialization params
. The type of CipherParameters depends on the algorithm being used
(see the documentation of each implementation to find out more).
Implementation
@override
void init(covariant HkdfParameters params) {
_params = params;
if (_params.skipExtract) {
// use IKM directly as PRK
_hMac.init(KeyParameter(_params.ikm));
} else {
_hMac.init(extract(_params.salt, _params.ikm));
}
_info = _params.info;
_generatedBytes = 0;
_currentT = Uint8List(_hashLen);
}