]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.html: add notes about hash.Hash
authorRuss Cox <rsc@golang.org>
Wed, 18 Jan 2012 15:36:43 +0000 (10:36 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 18 Jan 2012 15:36:43 +0000 (10:36 -0500)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5536053

doc/go1.html
doc/go1.tmpl

index af9bbd779a81bf18b939cbe1f28581f915df6d26..a20bd13115bb4116094c7ea1b3afd9a23516286b 100644 (file)
@@ -686,6 +686,21 @@ the correct function or method for the old functionality, but
 may have the wrong type or require further analysis.
 </p>
 
+<h3 id="hash">The hash package</h3>
+
+<p>
+In Go 1, the definition of <a href="/pkg/hash/#Hash"><code>hash.Hash</code></a> includes
+a new method, <code>BlockSize</code>.  This new method is used primarily in the 
+cryptographic libraries.
+</p>
+
+<p>
+<em>Updating</em>:
+Existing implementations of <code>hash.Hash</code> will need to add a
+<code>BlockSize</code> method.  Hashes that process the input one byte at
+a time can implement <code>BlockSize</code> to return 1.
+</p>
+
 <h3 id="html">The html package</h3>
 
 <p>
index 98517041192a5f10e1c216eb1df2c7c25174c523..40bd7cba9348a17a98eff5f55a38f3f4ab356ca8 100644 (file)
@@ -590,6 +590,21 @@ the correct function or method for the old functionality, but
 may have the wrong type or require further analysis.
 </p>
 
+<h3 id="hash">The hash package</h3>
+
+<p>
+In Go 1, the definition of <a href="/pkg/hash/#Hash"><code>hash.Hash</code></a> includes
+a new method, <code>BlockSize</code>.  This new method is used primarily in the 
+cryptographic libraries.
+</p>
+
+<p>
+<em>Updating</em>:
+Existing implementations of <code>hash.Hash</code> will need to add a
+<code>BlockSize</code> method.  Hashes that process the input one byte at
+a time can implement <code>BlockSize</code> to return 1.
+</p>
+
 <h3 id="html">The html package</h3>
 
 <p>