Class EdnsPaddingOption
Padding for a Message.
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class EdnsPaddingOption : EdnsOption
Remarks
Padding is used to frustrate size-based correlation of the encrypted message.
Defined in RFC 7830 - The EDNS(0) Padding Option
Constructors
| Improve this Doc View SourceEdnsPaddingOption()
Creates a new instance of the EdnsPaddingOption class.
Declaration
public EdnsPaddingOption()
Properties
| Improve this Doc View SourcePadding
The padding bytes.
Declaration
public byte[] Padding { get; set; }
Property Value
Type | Description |
---|---|
Byte[] | The bytes used for padding. Normally all bytes are zero. |
Methods
| Improve this Doc View SourceReadData(WireReader, Int32)
Read the data that is specific to the option Type.
Declaration
public override void ReadData(WireReader reader, int length)
Parameters
Type | Name | Description |
---|---|---|
WireReader | reader | The source of the option's data. |
Int32 | length | The length, in bytes, of the data. |
Overrides
Remarks
Derived classes must implement this method.
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceWriteData(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 option's data. |
Overrides
Remarks
Derived classes must implement this method.