Class NSEC3PARAMRecord
Parameters needed by authoritative servers to calculate hashed owner names.
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class NSEC3PARAMRecord : ResourceRecord, IWireSerialiser, ICloneable, IPresentationSerialiser
Remarks
Constructors
| Improve this Doc View SourceNSEC3PARAMRecord()
Creates a new instance of the NSEC3PARAMRecord class.
Declaration
public NSEC3PARAMRecord()
Properties
| Improve this Doc View SourceFlags
Not used, must be zero.
Declaration
public byte Flags { get; set; }
Property Value
Type | Description |
---|---|
Byte |
HashAlgorithm
The cryptographic hash algorithm used to create the hashed owner name.
Declaration
public DigestType HashAlgorithm { get; set; }
Property Value
Type | Description |
---|---|
DigestType | One of the DigestType value. |
Iterations
Number of times to perform the HashAlgorithm.
Declaration
public ushort Iterations { get; set; }
Property Value
Type | Description |
---|---|
UInt16 |
Salt
Appended to the original owner name before hashing.
Declaration
public byte[] Salt { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
Remarks
Used to defend against pre-calculated dictionary attacks.
Methods
| Improve this Doc View SourceReadData(PresentationReader)
Read the textual representation of the data that is specific to the resource record Type.
Declaration
public override void ReadData(PresentationReader reader)
Parameters
Type | Name | Description |
---|---|---|
PresentationReader | reader | The source of the resource record's data. |
Overrides
Remarks
Derived classes must implement this method.
ReadData(WireReader, Int32)
Read the data that is specific to the resource record Type.
Declaration
public override void ReadData(WireReader reader, int length)
Parameters
Type | Name | Description |
---|---|---|
WireReader | reader | The source of the resource record's data. |
Int32 | length | The length, in bytes, of the data. |
Overrides
Remarks
Derived classes must implement this method.
WriteData(PresentationWriter)
Write the textual representation of the data that is specific to the resource record.
Declaration
public override void WriteData(PresentationWriter writer)
Parameters
Type | Name | Description |
---|---|---|
PresentationWriter | writer | The destination for the resource record's data. |
Overrides
Remarks
Derived classes should implement this method.
By default, this will write the hex encoding of the GetData() preceeded by "#" and the number integer bytes.
WriteData(WireWriter)
Write the data that is specific to the resource record Type.
Declaration
public override void WriteData(WireWriter writer)
Parameters
Type | Name | Description |
---|---|---|
WireWriter | writer | The destination for the DNS object's data. |
Overrides
Remarks
Derived classes must implement this method.