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