Show / Hide Table of Contents

Class DigestRegistry

Registry of implemented DigestType.

Inheritance
Object
DigestRegistry
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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 Source

Digests

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 Source

Create(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 digestType.

Exceptions
Type Condition
NotImplementedException

When digestType is not implemented.

| Improve this Doc View Source

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 algorithm.

Exceptions
Type Condition
NotImplementedException

When the algorithm or its HashAlgorithm is not implemented.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX