public static KeyMac DeriveKek(byte[] password, byte[] salt, int iterations) { return(new KeyMac(Pbkdf2.GenerateSha512(password, salt, iterations, 64))); }
// // internal // internal static byte[] DeriveKey(string password, byte[] salt) { return(Pbkdf2.GenerateSha512(password.ToBytes(), salt, 10000, 32)); }