hkdfExtract function

Uint8List hkdfExtract({
  1. required Uint8List ikm,
  2. required Uint8List salt,
})

Implementation

Uint8List hkdfExtract({required Uint8List ikm, required Uint8List salt}) {
  var hmacSha256 = crypto.Hmac(crypto.sha256, salt);
  var prk = hmacSha256.convert(ikm).bytes;
  return Uint8List.fromList(prk);
}