<PackageReference Include="SshNet.Security.Cryptography" Version="1.2.0" />

KeyedHashAlgorithm

public abstract class KeyedHashAlgorithm : HashAlgorithm
Represents the abstract class from which all implementations of keyed hash algorithms must derive.
namespace System.Security.Cryptography { public abstract class KeyedHashAlgorithm : HashAlgorithm { private byte[] _key; public virtual byte[] Key { get { return (byte[])_key.Clone(); } set { _key = (byte[])value.Clone(); } } protected override void Dispose(bool disposing) { if (disposing) { if (_key != null) Array.Clear(_key, 0, _key.Length); _key = null; } base.Dispose(disposing); } } }