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)
| 186 | * @return The data to be cryptographically signed. |
| 187 | */ |
| 188 | public static byte [] |
| 189 | digestMessage(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. |
nothing calls this directly
no test coverage detected