hkdf function
Implementation
Future<SecretKey> hkdf(List<int> secret, List<int> salt) async {
final hkdfAlgorithm = Hkdf(
hmac: Hmac.sha256(),
outputLength: 32,
);
final derivedKey = await hkdfAlgorithm.deriveKey(
secretKey: SecretKey(secret),
nonce: salt,
info: Uint8List(0), // Empty array buffer for info
);
return derivedKey;
}