Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(668)

Issue 5556058: code review 5556058: crypto/hmac: Deprecate hmac.NewMD5, hmac.NewSHA1 and hm... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by Luit
Modified:
13 years, 4 months ago
Reviewers:
CC:
golang-dev, agl2, r, rsc
Visibility:
Public.

Description

crypto/hmac: Deprecate hmac.NewMD5, hmac.NewSHA1 and hmac.NewSHA256 Remove NewMD5, NewSHA1 and NewSHA256 in favor of using New and explicitly importing the used hash-function. This way when using, for example, HMAC with RIPEMD there's no md5, sha1 and sha256 linked in through the hmac package. A gofix rule is included, and applied to the standard library (3 files altered). This change is the result of a discussion at http://codereview.appspot.com/5550043/ to pull the discussion about deprecating these functions out of that issue.

Patch Set 1 #

Patch Set 2 : diff -r ca2fc0db9471 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r ca2fc0db9471 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -16 lines) Patch
M src/cmd/gofix/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/cmd/gofix/hmacnew.go View 1 1 chunk +61 lines, -0 lines 0 comments Download
A src/cmd/gofix/hmacnew_test.go View 1 1 chunk +107 lines, -0 lines 0 comments Download
M src/pkg/crypto/hmac/hmac.go View 1 3 chunks +1 line, -13 lines 0 comments Download
M src/pkg/crypto/tls/cipher_suites.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/exp/ssh/transport.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/pkg/net/smtp/auth.go View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 9
Luit
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, r@golang.org, rsc@golang.org), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2012-01-19 18:18:05 UTC) #1
Luit
To continue the discussion about this: I think it's better that there's one way to ...
13 years, 4 months ago (2012-01-19 18:24:46 UTC) #2
rsc
+agl It's hard for me to get excited about this one way or the other. ...
13 years, 4 months ago (2012-01-19 18:26:44 UTC) #3
Luit
rsc: I don't fully understand why not adding sha512 was a good thing, but removing ...
13 years, 4 months ago (2012-01-19 19:03:12 UTC) #4
agl2
On Thu, Jan 19, 2012 at 2:03 PM, <luitvd@gmail.com> wrote: > I think the benefit ...
13 years, 4 months ago (2012-01-19 19:03:58 UTC) #5
Luit
On 2012/01/19 19:03:58, agl_google.com wrote: > I'm happy with the change. Will take a detailed ...
13 years, 4 months ago (2012-01-19 19:16:29 UTC) #6
agl1
*** Submitted as http://code.google.com/p/go/source/detail?r=7a1019785fd5 *** crypto/hmac: Deprecate hmac.NewMD5, hmac.NewSHA1 and hmac.NewSHA256 Remove NewMD5, NewSHA1 and ...
13 years, 4 months ago (2012-01-19 22:28:45 UTC) #7
Luit
agl: can you add to the release notes, to keep the commander happy? It's an ...
13 years, 4 months ago (2012-01-19 23:31:10 UTC) #8
rsc
13 years, 4 months ago (2012-01-20 21:02:13 UTC) #9
The gofix seems to be buggy, but it may not
be the fault of the new module (it might be gofix
itself).  Filed golang.org/issue/2750.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b