Class KeyHostAlgorithm
Implements key support for host algorithm.
public class KeyHostAlgorithm : HostAlgorithm
- Inheritance
-
KeyHostAlgorithm
- Inherited Members
Constructors
KeyHostAlgorithm(string, Key)
Initializes a new instance of the KeyHostAlgorithm class.
public KeyHostAlgorithm(string name, Key key)
Parameters
KeyHostAlgorithm(string, Key, DigitalSignature)
Initializes a new instance of the KeyHostAlgorithm class.
public KeyHostAlgorithm(string name, Key key, DigitalSignature digitalSignature)
Parameters
name
stringThe signature format identifier.
key
KeyThe key used in this host key algorithm.
digitalSignature
DigitalSignatureThe signature implementation used in this host key algorithm.
Remarks
The key used by digitalSignature
is intended to be equal to key
.
This is not verified.
Properties
Data
Gets the encoded public key data.
public override byte[] Data { get; }
Property Value
- byte[]
The encoded public key data.
DigitalSignature
Gets the signature implementation used in this host key algorithm.
public DigitalSignature DigitalSignature { get; }
Property Value
Key
Gets the key used in this host key algorithm.
public Key Key { get; }
Property Value
Methods
Sign(byte[])
Signs and encodes the specified data.
public override byte[] Sign(byte[] data)
Parameters
data
byte[]The data to be signed.
Returns
- byte[]
The encoded signature.
VerifySignature(byte[], byte[])
Verifies the signature.
public override bool VerifySignature(byte[] data, byte[] signature)