/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteUInt16(KeyTag); writer.WriteByte((byte)Algorithm); writer.WriteByte((byte)HashAlgorithm); writer.WriteBase16String(Digest, appendSpace: false); }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteByte((byte)HashAlgorithm); writer.WriteByte((byte)Flags); writer.WriteUInt16(Iterations); if (Salt == null || Salt.Length == 0) { writer.WriteString("-"); } else { writer.WriteBase16String(Salt); } writer.WriteString(Base32.ExtendedHex.Encode(NextHashedOwnerName, padding: false).ToLowerInvariant()); bool next = false; foreach (var type in Types) { if (next) { writer.WriteSpace(); } writer.WriteDnsType(type, appendSpace: false); next = true; } }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteUInt16((ushort)Flags); writer.WriteByte(Protocol); writer.WriteByte((byte)Algorithm); writer.WriteBase64String(PublicKey, appendSpace: false); }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteDnsType(TypeCovered); writer.WriteByte((byte)Algorithm); writer.WriteByte(Labels); writer.WriteTimeSpan32(OriginalTTL); writer.WriteDateTime(SignatureExpiration); writer.WriteDateTime(SignatureInception); writer.WriteUInt16(KeyTag); writer.WriteDomainName(SignerName); writer.WriteBase64String(Signature, appendSpace: false); }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteByte((byte)HashAlgorithm); writer.WriteByte((byte)Flags); writer.WriteUInt16(Iterations); if (Salt == null || Salt.Length == 0) { writer.WriteString("-"); } else { writer.WriteBase16String(Salt, appendSpace: false); } }