HkdfParameters constructor
HkdfParameters(
- dynamic ikm,
- dynamic desiredKeyLength, [
- dynamic salt,
- dynamic info,
- dynamic skipExtract = false,
Implementation
factory HkdfParameters(ikm, desiredKeyLength,
[salt, info, skipExtract = false]) {
if (ikm == null) {
throw ArgumentError('IKM (input keying material) should not be null');
}
if (salt == null || salt.length == 0) {
salt = null;
}
return HkdfParameters._(
ikm, desiredKeyLength, salt, info ?? Uint8List(0), skipExtract);
}