From 1f1c9baf78330d2a6293a583fbaa44872bf8d2e9 Mon Sep 17 00:00:00 2001
From: Russ Cox
+In Go 1, the definition of hash.Hash
includes
+a new method, BlockSize
. This new method is used primarily in the
+cryptographic libraries.
+
+Updating:
+Existing implementations of hash.Hash
will need to add a
+BlockSize
method. Hashes that process the input one byte at
+a time can implement BlockSize
to return 1.
+
diff --git a/doc/go1.tmpl b/doc/go1.tmpl index 98517041192..40bd7cba934 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -590,6 +590,21 @@ the correct function or method for the old functionality, but may have the wrong type or require further analysis.
+
+In Go 1, the definition of hash.Hash
includes
+a new method, BlockSize
. This new method is used primarily in the
+cryptographic libraries.
+
+Updating:
+Existing implementations of hash.Hash
will need to add a
+BlockSize
method. Hashes that process the input one byte at
+a time can implement BlockSize
to return 1.
+