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