/// <summary> /// Initializes the key. /// </summary> /// <param name="key">The key.</param> private void InitializeKey(byte[] key) { if (key == null) { throw new ArgumentNullException("key", "The Key cannot be null."); } if (key.Length > BLOCK_SIZE) { this.m_Key = Md5.GetHash(key); } else { this.m_Key = key; } this.UpdateIOPadBuffers(); }