Example #1
0
 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);
 }
Example #2
0
 public SigRecord(DataBuffer buffer, int length)
 {
     int pos = buffer.Position;
     _coveredType = buffer.ReadShortInt();
     _algorithm = buffer.ReadByte();
     _numLabels = buffer.ReadByte();
     _expiration = buffer.ReadUInt();
     _inception = buffer.ReadUInt();
     _keyTag = buffer.ReadShortInt();
     _signer = buffer.ReadDomainName();
     buffer.Position = pos - length;
 }
Example #3
0
 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);
 }
Example #4
0
        public SigRecord(DataBuffer buffer, int length)
        {
            int pos = buffer.Position;

            _coveredType    = buffer.ReadShortInt();
            _algorithm      = buffer.ReadByte();
            _numLabels      = buffer.ReadByte();
            _expiration     = buffer.ReadUInt();
            _inception      = buffer.ReadUInt();
            _keyTag         = buffer.ReadShortInt();
            _signer         = buffer.ReadDomainName();
            buffer.Position = pos - length;
        }