From 68aff958ae7076ded8b4f051554106625c8dd56d Mon Sep 17 00:00:00 2001
From: Adam Langley crypto/elliptic
that take an elliptic.Curve
as their first argument.
+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. +
+
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.
+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. +
+