Ejemplo n.º 1
0
 /// <summary>
 /// Calculates the MAC for a ciphertext.
 /// </summary>
 /// <param name="ciphertext">The ciphertext.</param>
 /// <param name="key">The key.</param>
 /// <returns>The MAC.</returns>
 public static byte[] CalculateMac(byte[] ciphertext, byte[] key)
 {
     return(Hash.Pbkdf2(ciphertext, key, Rijndael256Settings.HashIterations));
 }