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