From: Russ Cox Date: Wed, 18 Jan 2012 15:36:43 +0000 (-0500) Subject: doc/go1.html: add notes about hash.Hash X-Git-Tag: weekly.2012-01-20~62 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1f1c9baf78330d2a6293a583fbaa44872bf8d2e9;p=gostls13.git doc/go1.html: add notes about hash.Hash R=golang-dev, r CC=golang-dev https://golang.org/cl/5536053 --- diff --git a/doc/go1.html b/doc/go1.html index af9bbd779a..a20bd13115 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -686,6 +686,21 @@ the correct function or method for the old functionality, but may have the wrong type or require further analysis.

+

The hash package

+ +

+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. +

+

The html package

diff --git a/doc/go1.tmpl b/doc/go1.tmpl index 9851704119..40bd7cba93 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.

+

The hash package

+ +

+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. +

+

The html package