man.isc-hmac-fixup.html revision 903596730995d4a0a7c3cc76119c9cf240a4c4fc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<!--
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - Copyright (C) 2000-2015 Internet Systems Consortium, Inc. ("ISC")
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin -
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - This Source Code Form is subject to the terms of the Mozilla Public
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - License, v. 2.0. If a copy of the MPL was not distributed with this
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin - file, You can obtain one at http://mozilla.org/MPL/2.0/.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin-->
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<html lang="en">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<head>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<title>isc-hmac-fixup</title>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="prev" href="man.genrandom.html" title="genrandom">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="next" href="man.nsec3hash.html" title="nsec3hash">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</head>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="navheader">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<table width="100%" summary="Navigation header">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<tr><th colspan="3" align="center"><span class="application">isc-hmac-fixup</span></th></tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="left">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a accesskey="p" href="man.genrandom.html">Prev</a>�</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<th width="60%" align="center">Manual pages</th>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="right">�<a accesskey="n" href="man.nsec3hash.html">Next</a>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</table>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<hr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="refentry">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a name="man.isc-hmac-fixup"></a><div class="titlepage"></div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="refnamediv">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<h2>Name</h2>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p><span class="application">isc-hmac-fixup</span> &#8212; fixes HMAC keys generated by older versions of BIND</p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="refsynopsisdiv">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<h2>Synopsis</h2>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<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>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="refsection">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a name="id-1.14.34.7"></a><h2>DESCRIPTION</h2>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Versions of BIND 9 up to and including BIND 9.6 had a bug causing
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin HMAC-SHA* TSIG keys which were longer than the digest length of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin hash algorithm (i.e., SHA1 keys longer than 160 bits, SHA256 keys
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin longer than 256 bits, etc) to be used incorrectly, generating a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin message authentication code that was incompatible with other DNS
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin implementations.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin </p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin This bug has been fixed in BIND 9.7. However, the fix may
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin cause incompatibility between older and newer versions of
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin BIND, when using long keys. <span class="command"><strong>isc-hmac-fixup</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin modifies those keys to restore compatibility.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin </p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin To modify a key, run <span class="command"><strong>isc-hmac-fixup</strong></span> and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin specify the key's algorithm and secret on the command line. If the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin secret is longer than the digest length of the algorithm (64 bytes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin for SHA1 through SHA256, or 128 bytes for SHA384 and SHA512), then a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin new secret will be generated consisting of a hash digest of the old
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin secret. (If the secret did not require conversion, then it will be
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin printed without modification.)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin </p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="refsection">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a name="id-1.14.34.8"></a><h2>SECURITY CONSIDERATIONS</h2>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Secrets that have been converted by <span class="command"><strong>isc-hmac-fixup</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin are shortened, but as this is how the HMAC protocol works in
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin operation anyway, it does not affect security. RFC 2104 notes,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "Keys longer than [the digest length] are acceptable but the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin extra length would not significantly increase the function
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin strength."
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin </p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="refsection">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a name="id-1.14.34.9"></a><h2>SEE ALSO</h2>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <em class="citetitle">BIND 9 Administrator Reference Manual</em>,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <em class="citetitle">RFC 2104</em>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin </p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<div class="navfooter">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<hr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<table width="100%" summary="Navigation footer">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="40%" align="left">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<a accesskey="p" href="man.genrandom.html">Prev</a>�</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="40%" align="right">�<a accesskey="n" href="man.nsec3hash.html">Next</a>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="40%" align="left" valign="top">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<span class="application">genrandom</span>�</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="40%" align="right" valign="top">�<span class="application">nsec3hash</span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</td>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</tr>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</table>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</div>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.11.0rc2</p>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</body>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin</html>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin