Exemplo n.º 1
0
 /// <summary>
 /// Implementation References RFC 2930
 /// </summary>
 /// <param name="buffer"></param>
 public TKeyRecord(DataBuffer buffer)
 {
     algorithm  = buffer.ReadDomainName();
     inception  = buffer.ReadUInt();
     expiration = buffer.ReadUInt();
     mode       = buffer.ReadShortUInt();
     error      = buffer.ReadShortUInt();
     keySize    = buffer.ReadShortUInt();
     keyData    = buffer.ReadBytes(keySize);
     otherSize  = buffer.ReadShortUInt();
     otherData  = buffer.ReadBytes(otherSize);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Implementation References RFC 2930
 /// </summary>
 /// <param name="buffer"></param>
  public TKeyRecord(DataBuffer buffer)
 {
     algorithm = buffer.ReadDomainName();
     inception = buffer.ReadUInt();
     expiration = buffer.ReadUInt();
     mode = buffer.ReadShortUInt();
     error = buffer.ReadShortUInt();
     keySize = buffer.ReadShortUInt();
     keyData = buffer.ReadBytes(keySize);
     otherSize = buffer.ReadShortUInt();
     otherData = buffer.ReadBytes(otherSize);
 }
Exemplo n.º 3
0
  public TSigRecord(DataBuffer buffer)
 {
     algorithm = buffer.ReadDomainName();
     timeSigned = buffer.ReadLongInt();
     fudge = buffer.ReadShortUInt();
     macSize = buffer.ReadShortUInt();
     mac = buffer.ReadBytes(macSize);
     originalId = buffer.ReadShortUInt();
     error = buffer.ReadShortUInt();
     otherLen = buffer.ReadShortUInt();
     otherData = buffer.ReadBytes(otherLen);
 }
Exemplo n.º 4
0
 public TSigRecord(DataBuffer buffer)
 {
     algorithm  = buffer.ReadDomainName();
     timeSigned = buffer.ReadLongInt();
     fudge      = buffer.ReadShortUInt();
     macSize    = buffer.ReadShortUInt();
     mac        = buffer.ReadBytes(macSize);
     originalId = buffer.ReadShortUInt();
     error      = buffer.ReadShortUInt();
     otherLen   = buffer.ReadShortUInt();
     otherData  = buffer.ReadBytes(otherLen);
 }
Exemplo n.º 5
0
 public KeyRecord(DataBuffer buffer, int length)
 {
     flags     = buffer.ReadShortInt();
     protocol  = buffer.ReadByte();
     algorithm = buffer.ReadByte();
     publicKey = buffer.ReadBytes(length - 4);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Implementation Reference RFC 3658
 /// </summary>
 /// <param name="buffer"></param>
 public DSRecord(DataBuffer buffer, int length)
 {
     key        = buffer.ReadShortInt();
     algorithm  = buffer.ReadByte();
     digestType = buffer.ReadByte();
     digest     = buffer.ReadBytes(length - 4);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Implementation Reference RFC 3658
 /// </summary>
 /// <param name="buffer"></param>
  public DSRecord(DataBuffer buffer, int length)
 {
      key = buffer.ReadShortInt();
      algorithm = buffer.ReadByte();
      digestType = buffer.ReadByte();
      digest = buffer.ReadBytes(length - 4);
 }
Exemplo n.º 8
0
  public KeyRecord(DataBuffer buffer, int length)
 {
     flags = buffer.ReadShortInt();
     protocol = buffer.ReadByte();
     algorithm = buffer.ReadByte();
     publicKey = buffer.ReadBytes(length - 4);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Create A Record from Data Buffer
 /// </summary>
 /// <param name="buffer"></param>
 public ARecord(DataBuffer buffer)
 {
     Byte[] ipaddress = buffer.ReadBytes(4);
     ipAddress = new IPAddress(ipaddress);
 }
Exemplo n.º 10
0
 /// <summary>
 /// Create A Record from Data Buffer
 /// </summary>
 /// <param name="buffer"></param>
 public ARecord(DataBuffer buffer)
 {
     Byte[] ipaddress = buffer.ReadBytes(4);
     ipAddress = new IPAddress(ipaddress);
 }