Compute() 공개 메소드

public Compute ( byte message, byte key ) : byte[]
message byte
key byte
리턴 byte[]
예제 #1
0
 /// <summary>
 /// A message is generated by encrypting a hard coded value with the provided Master Key and 
 /// Initialization Vector.
 /// The message is then passed to the hashing function and the key used is the provided Master Key.
 /// </summary>
 public Authorization(MasterKey masterKey, byte[] initializationVector, Aes aes, HmacSha256 hmacSha256)
 {
     InitializationVector = initializationVector;
     var ciphertext = aes.Encrypt(AuthorizedMessage, masterKey.SecretKey, initializationVector);
     Hmac = hmacSha256.Compute(ciphertext, masterKey.SecretKey);
 }