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