Class DigestRegistry
Registry of implemented DigestType.
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public static class DigestRegistry
Remarks
IANA maintains a list of all known types at https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml#ds-rr-types-1.
Fields
| Improve this Doc View SourceDigests
Defined hashing algorithms.
Declaration
public static Dictionary<DigestType, Func<HashAlgorithm>> Digests
Field Value
Type | Description |
---|---|
Dictionary<DigestType, Func<HashAlgorithm>> |
Remarks
The key is the DigestType. The value is a function that returns a new ResourceRecord.
Methods
| Improve this Doc View SourceCreate(DigestType)
Gets the hash algorithm for the DigestType.
Declaration
public static HashAlgorithm Create(DigestType digestType)
Parameters
Type | Name | Description |
---|---|---|
DigestType | digestType | One of the DigestType values. |
Returns
Type | Description |
---|---|
HashAlgorithm | A new instance of the HashAlgorithm that implements
the |
Exceptions
Type | Condition |
---|---|
NotImplementedException | When |
Create(SecurityAlgorithm)
Gets the hash algorithm for the SecurityAlgorithm.
Declaration
public static HashAlgorithm Create(SecurityAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
SecurityAlgorithm | algorithm | One of the SecurityAlgorithm values. |
Returns
Type | Description |
---|---|
HashAlgorithm | A new instance of the HashAlgorithm that is used
for the |
Exceptions
Type | Condition |
---|---|
NotImplementedException | When the |