void toWire(DNSOutput out) { header.toWire(out); Compression c = new Compression(); for (int i = 0; i < 4; i++) { if (sections[i] == null) continue; for (int j = 0; j < sections[i].size(); j++) { Record rec = (Record)sections[i].get(j); rec.toWire(out, i, c); } } }
void toWire(DNSOutput out) { header.toWire(out); Compression c = new Compression(); for (int i = 0; i < 4; i++) { if (sections[i] == null) continue; for (int j = 0; j < sections[i].size(); j++) { Record rec = (Record)sections[i].get(j); rec.toWire(out, i, c); } } }
void toWire(DNSOutput out) { header.toWire(out); Compression c = new Compression(); for (int i = 0; i < 4; i++) { if (sections[i] == null) continue; for (int j = 0; j < sections[i].size(); j++) { Record rec = (Record)sections[i].get(j); rec.toWire(out, i, c); } } }
void toWire(DNSOutput out) { header.toWire(out); Compression c = new Compression(); for (int i = 0; i < 4; i++) { if (sections[i] == null) continue; for (int j = 0; j < sections[i].size(); j++) { Record rec = (Record)sections[i].get(j); rec.toWire(out, i, c); } } }
public byte [] toWire() { DNSOutput out = new DNSOutput(); toWire(out); return out.toByteArray(); }
public byte [] toWire() { DNSOutput out = new DNSOutput(); toWire(out); return out.toByteArray(); }
public byte [] toWire() { DNSOutput out = new DNSOutput(); toWire(out); return out.toByteArray(); }
public byte [] toWire() { DNSOutput out = new DNSOutput(); toWire(out); return out.toByteArray(); }
byte [] header = m.getHeader().toWire(); if (tsig != null) m.getHeader().incCount(Section.ADDITIONAL);
static void verifyMessage(Message message, byte [] bytes, SIGRecord sig, SIGRecord previous, KEYRecord key) throws DNSSECException { if (!matches(sig, key)) throw new KeyMismatchException(key, sig); Date now = new Date(); if (now.compareTo(sig.getExpire()) > 0) throw new SignatureExpiredException(sig.getExpire(), now); if (now.compareTo(sig.getTimeSigned()) < 0) throw new SignatureNotYetValidException(sig.getTimeSigned(), now); DNSOutput out = new DNSOutput(); digestSIG(out, sig); if (previous != null) out.writeByteArray(previous.getSignature()); Header header = (Header) message.getHeader().clone(); header.decCount(Section.ADDITIONAL); out.writeByteArray(header.toWire()); out.writeByteArray(bytes, Header.LENGTH, message.sig0start - Header.LENGTH); verify(key.getPublicKey(), sig.getAlgorithm(), out.toByteArray(), sig.getSignature()); }
byte [] header = m.getHeader().toWire(); m.getHeader().incCount(Section.ADDITIONAL); hmac.update(header);
out.writeByteArray(header.toWire());
out.writeByteArray(header.toWire());
byte [] header = m.getHeader().toWire(); m.getHeader().incCount(Section.ADDITIONAL); hmac.update(header);
byte [] header = m.getHeader().toWire(); m.getHeader().incCount(Section.ADDITIONAL); hmac.update(header);
byte [] header = m.getHeader().toWire(); if (tsig != null) m.getHeader().incCount(Section.ADDITIONAL);
header.toWire(out); Compression c = new Compression(); int flags = header.getFlagsByte();