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