man.isc-hmac-fixup.html revision fd2597f75693a2279fdf588bd40dfe2407c42028
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater - Copyright (C) 2000-2003 Internet Software Consortium.
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater - Permission to use, copy, modify, and/or distribute this software for any
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater - purpose with or without fee is hereby granted, provided that the above
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews - copyright notice and this permission notice appear in all copies.
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington - PERFORMANCE OF THIS SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater<link rel="prev" href="man.genrandom.html" title="genrandom">
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater<link rel="next" href="man.nsec3hash.html" title="nsec3hash">
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<table width="100%" summary="Navigation header">
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<tr><th colspan="3" align="center"><span class="application">isc-hmac-fixup</span></th></tr>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<a accesskey="p" href="man.genrandom.html">Prev</a>�</td>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews<th width="60%" align="center">Manual pages</th>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<td width="20%" align="right">�<a accesskey="n" href="man.nsec3hash.html">Next</a>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<a name="man.isc-hmac-fixup"></a><div class="titlepage"></div>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<p><span class="application">isc-hmac-fixup</span> — fixes HMAC keys generated by older versions of BIND</p>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews<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>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<a name="id-1.14.30.7"></a><h2>DESCRIPTION</h2>
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews Versions of BIND 9 up to and including BIND 9.6 had a bug causing
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews HMAC-SHA* TSIG keys which were longer than the digest length of the
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews hash algorithm (i.e., SHA1 keys longer than 160 bits, SHA256 keys
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson longer than 256 bits, etc) to be used incorrectly, generating a
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews message authentication code that was incompatible with other DNS
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews implementations.
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater This bug has been fixed in BIND 9.7. However, the fix may
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater cause incompatibility between older and newer versions of
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater BIND, when using long keys. <span class="command"><strong>isc-hmac-fixup</strong></span>
55e03fc54708d97917bf26639b987f759bdc1f44Automatic Updater modifies those keys to restore compatibility.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont To modify a key, run <span class="command"><strong>isc-hmac-fixup</strong></span> and
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont specify the key's algorithm and secret on the command line. If the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont secret is longer than the digest length of the algorithm (64 bytes
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont for SHA1 through SHA256, or 128 bytes for SHA384 and SHA512), then a
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews new secret will be generated consisting of a hash digest of the old
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater secret. (If the secret did not require conversion, then it will be
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater printed without modification.)
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater<a name="id-1.14.30.8"></a><h2>SECURITY CONSIDERATIONS</h2>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater Secrets that have been converted by <span class="command"><strong>isc-hmac-fixup</strong></span>
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater are shortened, but as this is how the HMAC protocol works in
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews operation anyway, it does not affect security. RFC 2104 notes,
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews "Keys longer than [the digest length] are acceptable but the
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater extra length would not significantly increase the function
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater<a name="id-1.14.30.9"></a><h2>SEE ALSO</h2>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <em class="citetitle">BIND 9 Administrator Reference Manual</em>,
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater<table width="100%" summary="Navigation footer">
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater<a accesskey="p" href="man.genrandom.html">Prev</a>�</td>
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updater<td width="40%" align="right">�<a accesskey="n" href="man.nsec3hash.html">Next</a>
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater<span class="application">genrandom</span>�</td>
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<td width="40%" align="right" valign="top">�<span class="application">nsec3hash</span>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.11.0pre-alpha</p>