MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / digestMessage

Method digestMessage

src/main/java/core/org/xbill/DNS/DNSSEC.java:188–198  ·  view source on GitHub ↗

Creates a byte array containing the concatenation of the fields of the SIG(0) record and the message to be signed. This does not perform a cryptographic digest. @param sig The SIG record used to sign the rrset. @param msg The message to be signed. @param previous If this is a response, the signatur

(SIGRecord sig, Message msg, byte [] previous)

Source from the content-addressed store, hash-verified

186 * @return The data to be cryptographically signed.
187 */
188public static byte []
189digestMessage(SIGRecord sig, Message msg, byte [] previous) {
190 DNSOutput out = new DNSOutput();
191 digestSIG(out, sig);
192
193 if (previous != null)
194 out.writeByteArray(previous);
195
196 msg.toWire(out);
197 return out.toByteArray();
198}
199
200/**
201 * A DNSSEC exception.

Callers

nothing calls this directly

Calls 4

digestSIGMethod · 0.95
writeByteArrayMethod · 0.95
toByteArrayMethod · 0.95
toWireMethod · 0.45

Tested by

no test coverage detected