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