예제 #1
0
파일: SIGBase.java 프로젝트: lemmy/dnsjava
  void rrToWire(DataByteOutputStream out, Compression c, boolean canonical) {
    if (signature == null) return;

    out.writeUnsignedShort(covered);
    out.writeByte(alg);
    out.writeByte(labels);
    out.writeUnsignedInt(origttl);
    out.writeUnsignedInt(expire.getTime() / 1000);
    out.writeUnsignedInt(timeSigned.getTime() / 1000);
    out.writeShort(footprint);
    signer.toWire(out, null, canonical);
    out.writeArray(signature);
  }
예제 #2
0
파일: DNSSEC.java 프로젝트: lemmy/dnsjava
 private static void digestSIG(DataByteOutputStream out, SIGRecord sig) {
   out.writeShort(sig.getTypeCovered());
   out.writeByte(sig.getAlgorithm());
   out.writeByte(sig.getLabels());
   out.writeUnsignedInt(sig.getOrigTTL());
   out.writeInt((int) (sig.getExpire().getTime() / 1000));
   out.writeInt((int) (sig.getTimeSigned().getTime() / 1000));
   out.writeShort(sig.getFootprint());
   sig.getSigner().toWireCanonical(out);
 }