internal override DnsResourceData CreateInstance(DataSegment data)
        {
            DnsFingerprintPublicKeyAlgorithm algorithm = (DnsFingerprintPublicKeyAlgorithm)data[Offset.Algorithm];
            DnsFingerprintType fingerprintType         = (DnsFingerprintType)data[Offset.FingerprintType];
            DataSegment        fingerprint             = data.Subsegment(Offset.Fingerprint, data.Length - ConstPartLength);

            return(new DnsResourceDataSshFingerprint(algorithm, fingerprintType, fingerprint));
        }
 /// <summary>
 /// Constructs an instance out of the algorithm, fingerprint type and fingerprint fields.
 /// </summary>
 /// <param name="algorithm">Describes the algorithm of the public key.</param>
 /// <param name="fingerprintType">Describes the message-digest algorithm used to calculate the fingerprint of the public key.</param>
 /// <param name="fingerprint">
 /// The fingerprint is calculated over the public key blob.
 /// The message-digest algorithm is presumed to produce an opaque octet string output, which is placed as-is in the RDATA fingerprint field.
 /// </param>
 public DnsResourceDataSshFingerprint(DnsFingerprintPublicKeyAlgorithm algorithm, DnsFingerprintType fingerprintType, DataSegment fingerprint)
 {
     Algorithm       = algorithm;
     FingerprintType = fingerprintType;
     Fingerprint     = fingerprint;
 }