diff --git a/doc/go1.html b/doc/go1.html index 23ed3709fbe..d839b7a278c 100644 --- a/doc/go1.html +++ b/doc/go1.html @@ -875,6 +875,19 @@ in crypto/elliptic that take an elliptic.Curve as their first argument.

+

The crypto/hmac package

+ +

+In Go 1, the hash-specific functions, such as hmac.NewMD5, have +been removed from crypto/hmac. Instead, hmac.New takes +a function that returns a hash.Hash, such as md5.New. +

+ +

+Updating: +Gofix will perform the needed changes. +

+

The crypto/x509 package

diff --git a/doc/go1.tmpl b/doc/go1.tmpl index fd005b102df..f1203f19073 100644 --- a/doc/go1.tmpl +++ b/doc/go1.tmpl @@ -779,6 +779,19 @@ in crypto/elliptic that take an elliptic.Curve as their first argument.

+

The crypto/hmac package

+ +

+In Go 1, the hash-specific functions, such as hmac.NewMD5, have +been removed from crypto/hmac. Instead, hmac.New takes +a function that returns a hash.Hash, such as md5.New. +

+ +

+Updating: +Gofix will perform the needed changes. +

+

The crypto/x509 package