예제 #1
0
파일: HMAC.cs 프로젝트: bdachev/SharpSSH
 public virtual byte[] doFinal()
 {
     //return mac.doFinal();
     cs.Close();
     byte[] result = hmac.Hash;
     hmac.Initialize();
     cs = new System.Security.Cryptography.CryptoStream(System.IO.Stream.Null, hmac, System.Security.Cryptography.CryptoStreamMode.Write);
     return(result);
 }
예제 #2
0
 public override void Initialize()
 {
     m_hmac.Initialize();
     m_hmac.Key = Key;
 }
 public override void Initialize()
 {
     _hmac.Initialize();
 }