]> Cypherpunks repositories - gostls13.git/commitdiff
doc: update Go1 release notes in light of the crypto/hmac change.
authorAdam Langley <agl@golang.org>
Fri, 27 Jan 2012 18:12:27 +0000 (10:12 -0800)
committerAdam Langley <agl@golang.org>
Fri, 27 Jan 2012 18:12:27 +0000 (10:12 -0800)
R=r
CC=golang-dev
https://golang.org/cl/5532108

doc/go1.html
doc/go1.tmpl

index 23ed3709fbe6a56b83316192c4462342b4a1f960..d839b7a278cb3f0352571c6655ca3f367122bf73 100644 (file)
@@ -875,6 +875,19 @@ in <code>crypto/elliptic</code> that take an <code>elliptic.Curve</code>
 as their first argument.
 </p>
 
+<h3 id="crypto/hmac">The crypto/hmac package</h3>
+
+<p>
+In Go 1, the hash-specific functions, such as <code>hmac.NewMD5</code>, have
+been removed from <code>crypto/hmac</code>. Instead, <code>hmac.New</code> takes
+a function that returns a <code>hash.Hash</code>, such as <code>md5.New</code>.
+</p>
+
+<p>
+<em>Updating</em>:
+Gofix will perform the needed changes.
+</p>
+
 <h3 id="crypto_x509">The crypto/x509 package</h3>
 
 <p>
index fd005b102df056871ff17342926205676ca68a87..f1203f19073437439fab97044a95d2ebe238e88f 100644 (file)
@@ -779,6 +779,19 @@ in <code>crypto/elliptic</code> that take an <code>elliptic.Curve</code>
 as their first argument.
 </p>
 
+<h3 id="crypto/hmac">The crypto/hmac package</h3>
+
+<p>
+In Go 1, the hash-specific functions, such as <code>hmac.NewMD5</code>, have
+been removed from <code>crypto/hmac</code>. Instead, <code>hmac.New</code> takes
+a function that returns a <code>hash.Hash</code>, such as <code>md5.New</code>.
+</p>
+
+<p>
+<em>Updating</em>:
+Gofix will perform the needed changes.
+</p>
+
 <h3 id="crypto_x509">The crypto/x509 package</h3>
 
 <p>