1102N/A - Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC") 1102N/A - Copyright (C) 2000-2003 Internet Software Consortium. 1102N/A - Permission to use, copy, modify, and/or distribute this software for any 1102N/A - purpose with or without fee is hereby granted, provided that the above 1102N/A - copyright notice and this permission notice appear in all copies. 1102N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 1102N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 1102N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 1102N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 1102N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 1102N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1102N/A - PERFORMANCE OF THIS SOFTWARE. 1102N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1102N/A<
title>isc-hmac-fixup</
title>
1102N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
1102N/A<
link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
1102N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
1102N/A<
table width="100%" summary="Navigation header">
1102N/A<
tr><
th colspan="3" align="center"><
span class="application">isc-hmac-fixup</
span></
th></
tr>
1102N/A<
td width="20%" align="left">
1102N/A<
th width="60%" align="center">Manual pages</
th>
1102N/A<
div class="refentry" lang="en">
1102N/A<
p><
span class="application">isc-hmac-fixup</
span> — fixes HMAC keys generated by older versions of BIND</
p>
1102N/A<
div class="refsynopsisdiv">
1102N/A<
div class="cmdsynopsis"><
p><
code class="command">isc-hmac-fixup</
code> {<
em class="replaceable"><
code>algorithm</
code></
em>} {<
em class="replaceable"><
code>secret</
code></
em>}</
p></
div>
1102N/A<
div class="refsect1" lang="en">
1102N/A<
a name="id2616208"></
a><
h2>DESCRIPTION</
h2>
1102N/A Versions of BIND 9 up to and including BIND 9.6 had a bug causing
1102N/A HMAC-SHA* TSIG keys which were longer than the digest length of the
1102N/A hash algorithm (
i.e., SHA1 keys longer than 160 bits, SHA256 keys
1102N/A longer than 256 bits, etc) to be used incorrectly, generating a
1102N/A message authentication code that was incompatible with other DNS
1102N/A This bug has been fixed in BIND 9.7. However, the fix may
1102N/A cause incompatibility between older and newer versions of
1102N/A BIND, when using long keys. <
span><
strong class="command">isc-hmac-fixup</
strong></
span>
1102N/A modifies those keys to restore compatibility.
1102N/A To modify a key, run <
span><
strong class="command">isc-hmac-fixup</
strong></
span> and
1102N/A specify the key's algorithm and secret on the command line. If the
1102N/A secret is longer than the digest length of the algorithm (64 bytes
1102N/A for SHA1 through SHA256, or 128 bytes for SHA384 and SHA512), then a
1102N/A new secret will be generated consisting of a hash digest of the old
1102N/A secret. (If the secret did not require conversion, then it will be
1102N/A printed without modification.)
1102N/A<
div class="refsect1" lang="en">
1102N/A<
a name="id2616235"></
a><
h2>SECURITY CONSIDERATIONS</
h2>
1102N/A Secrets that have been converted by <
span><
strong class="command">isc-hmac-fixup</
strong></
span>
1102N/A are shortened, but as this is how the HMAC protocol works in
1102N/A operation anyway, it does not affect security. RFC 2104 notes,
1102N/A "Keys longer than [the digest length] are acceptable but the
1102N/A extra length would not significantly increase the function
1102N/A<
div class="refsect1" lang="en">
1102N/A<
a name="id2655095"></
a><
h2>SEE ALSO</
h2>
1102N/A <
em class="citetitle">BIND 9 Administrator Reference Manual</
em>,
1102N/A <
em class="citetitle">RFC 2104</
em>.
1102N/A<
div class="refsect1" lang="en">
1102N/A<
a name="id2655112"></
a><
h2>AUTHOR</
h2>
1102N/A<
p><
span class="corpauthor">Internet Systems Consortium</
span>
1102N/A<
table width="100%" summary="Navigation footer">
1102N/A<
td width="40%" align="left">
1102N/A<
td width="40%" align="left" valign="top">
1102N/A<
span class="application">genrandom</
span>�</
td>
1102N/A<
td width="40%" align="right" valign="top">�<
span class="application">nsec3hash</
span>