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

Issue 2751042: code review 2751042: crypto: switch block ciphers to detination first. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by agl1
Modified:
14 years, 2 months ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

crypto: switch block ciphers to detination first. Previously all the functions took two arguments: src, dst. This is the reverse of the usual Go style and worth changing sooner rather than later. Unfortunately, this is a change that the type system doesn't help with. However, it's not a subtle change: any unittest worth the name should catch this.

Patch Set 1 #

Patch Set 2 : code review 2751042: crypto: switch block ciphers to detination first. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -34 lines) Patch
M src/pkg/crypto/aes/aes_test.go View 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/crypto/aes/block.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/aes/cipher.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/block/cbc.go View 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/crypto/block/cfb.go View 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/crypto/block/cipher.go View 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/crypto/block/cmac.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/block/ctr.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/block/ecb_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/blowfish/blowfish_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/blowfish/cipher.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/xtea/block.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/xtea/cipher.go View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/xtea/xtea_test.go View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 8
agl1
14 years, 4 months ago (2010-10-27 17:03:15 UTC) #1
r
thanks for this. it's been on our list for a long time. are there no ...
14 years, 4 months ago (2010-10-27 17:11:00 UTC) #2
rsc
this looks good to me but please do not submit yet. we're tagging a release ...
14 years, 4 months ago (2010-10-27 17:12:44 UTC) #3
agl1
On Wed, Oct 27, 2010 at 1:12 PM, Russ Cox <rsc@golang.org> wrote: > this looks ...
14 years, 4 months ago (2010-10-27 17:44:39 UTC) #4
rsc1
LGTM fine to submit now
14 years, 4 months ago (2010-11-01 20:31:00 UTC) #5
agl1
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 4 months ago (2010-11-02 17:54:10 UTC) #6
r
LGTM but please fix typo in CL description
14 years, 4 months ago (2010-11-02 17:57:41 UTC) #7
rsc
14 years, 3 months ago (2010-12-07 17:01:32 UTC) #8
Appears to have been submitted; removing reviewers.
Sign in to reply to this message.

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