Ejemplo n.º 1
0
 /// <inheritdoc />
 public override void WriteData(WireWriter writer)
 {
     writer.WriteUInt16(KeyTag);
     writer.WriteByte((byte)Algorithm);
     writer.WriteByte((byte)HashAlgorithm);
     writer.WriteBytes(Digest);
 }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public override void WriteData(WireWriter writer)
 {
     writer.WriteByte((byte)HashAlgorithm);
     writer.WriteByte(Flags);
     writer.WriteUInt16(Iterations);
     writer.WriteByteLengthPrefixedBytes(Salt);
 }
Ejemplo n.º 3
0
 /// <inheritdoc />
 public override void WriteData(WireWriter writer)
 {
     writer.WriteUInt16((ushort)Flags);
     writer.WriteByte(Protocol);
     writer.WriteByte((byte)Algorithm);
     writer.WriteBytes(PublicKey);
 }
Ejemplo n.º 4
0
 /// <inheritdoc />
 public override void WriteData(WireWriter writer)
 {
     writer.WriteByte((byte)HashAlgorithm);
     writer.WriteByte((byte)Flags);
     writer.WriteUInt16(Iterations);
     writer.WriteByteLengthPrefixedBytes(Salt);
     writer.WriteByteLengthPrefixedBytes(NextHashedOwnerName);
     writer.WriteBitmap(Types.Select(t => (ushort)t));
 }
Ejemplo n.º 5
0
 /// <inheritdoc />
 public override void WriteData(WireWriter writer)
 {
     writer.WriteUInt16((ushort)TypeCovered);
     writer.WriteByte((byte)Algorithm);
     writer.WriteByte(Labels);
     writer.WriteTimeSpan32(OriginalTTL);
     writer.WriteDateTime32(SignatureExpiration);
     writer.WriteDateTime32(SignatureInception);
     writer.WriteUInt16(KeyTag);
     writer.WriteDomainName(SignerName, uncompressed: true);
     writer.WriteBytes(Signature);
 }
Ejemplo n.º 6
0
 /// <inheritdoc />
 public override void WriteData(WireWriter writer)
 {
     foreach (var algorithm in Algorithms)
     {
         writer.WriteByte((byte)algorithm);
     }
 }