protected void Initialize(HashAlgorithm hash, byte[] secret, byte[] seed) { if (seed == null || secret == null || hash == null) throw new ArgumentNullException(); m_Disposed = false; m_HMAC = new Org.Mentalis.Security.Cryptography.HMAC(hash, secret); m_Seed = seed; m_HashSize = m_HMAC.HashSize / 8; Reset(); }
protected void Initialize(HashAlgorithm hash, byte[] secret, byte[] seed) { if (seed == null || secret == null || hash == null) { throw new ArgumentNullException(); } m_Disposed = false; m_HMAC = new HMAC(hash, secret); m_Seed = seed; m_HashSize = m_HMAC.HashSize / 8; Reset(); }