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

Issue 5625045: code review 5625045: crypto/...: more fixes for bug 2841 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by agl1
Modified:
12 years, 3 months ago
Reviewers:
CC:
rsc, r, golang-dev
Visibility:
Public.

Description

crypto/...: more fixes for bug 2841 1) Remove the Reset() member in crypto/aes and crypto/des (and document the change). 2) Turn several empty error structures into vars. Any remaining error structures are either non-empty, or will probably become so in the future. 3) Implement SetWriteDeadline for TLS sockets. At the moment, the TLS status cannot be reused after a Write error, which is probably fine for most uses. 4) Make crypto/aes and crypto/des return a cipher.Block.

Patch Set 1 #

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

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

Total comments: 4

Patch Set 4 : diff -r 4d519971228f https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 4d519971228f https://go.googlecode.com/hg/ #

Total comments: 14

Patch Set 6 : diff -r fae148fab2a7 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r ab8a2146f8f1 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -487 lines) Patch
M doc/go1.html View 1 2 3 4 5 6 12 chunks +61 lines, -166 lines 0 comments Download
M doc/go1.tmpl View 1 2 3 4 5 6 12 chunks +61 lines, -166 lines 0 comments Download
M src/pkg/crypto/aes/cipher.go View 1 2 3 4 5 3 chunks +12 lines, -30 lines 0 comments Download
M src/pkg/crypto/cipher/cbc_aes_test.go View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M src/pkg/crypto/cipher/cfb_test.go View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M src/pkg/crypto/cipher/common_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/cipher/ctr_aes_test.go View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M src/pkg/crypto/cipher/ofb_test.go View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M src/pkg/crypto/des/block.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/des/cipher.go View 1 2 3 4 5 2 chunks +21 lines, -48 lines 0 comments Download
M src/pkg/crypto/des/des_test.go View 1 2 3 4 chunks +12 lines, -4 lines 0 comments Download
M src/pkg/crypto/dsa/dsa.go View 1 1 chunk +1 line, -7 lines 0 comments Download
M src/pkg/crypto/rand/rand_unix.go View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/pkg/crypto/rsa/pkcs1v15.go View 1 7 chunks +7 lines, -7 lines 0 comments Download
M src/pkg/crypto/rsa/rsa.go View 1 6 chunks +11 lines, -19 lines 0 comments Download
M src/pkg/crypto/tls/conn.go View 1 4 chunks +18 lines, -13 lines 0 comments Download
M src/pkg/crypto/x509/x509.go View 1 5 chunks +8 lines, -12 lines 0 comments Download

Messages

Total messages: 11
agl1
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-02-03 21:35:04 UTC) #1
rsc
http://codereview.appspot.com/5625045/diff/5001/src/pkg/crypto/aes/cipher.go File src/pkg/crypto/aes/cipher.go (right): http://codereview.appspot.com/5625045/diff/5001/src/pkg/crypto/aes/cipher.go#newcode12 src/pkg/crypto/aes/cipher.go:12: // A Cipher is an instance of AES encryption ...
12 years, 3 months ago (2012-02-03 21:48:00 UTC) #2
agl1
http://codereview.appspot.com/5625045/diff/5001/src/pkg/crypto/aes/cipher.go File src/pkg/crypto/aes/cipher.go (right): http://codereview.appspot.com/5625045/diff/5001/src/pkg/crypto/aes/cipher.go#newcode12 src/pkg/crypto/aes/cipher.go:12: // A Cipher is an instance of AES encryption ...
12 years, 3 months ago (2012-02-03 21:56:29 UTC) #3
r
http://codereview.appspot.com/5625045/diff/5001/doc/go1.tmpl File doc/go1.tmpl (right): http://codereview.appspot.com/5625045/diff/5001/doc/go1.tmpl#newcode773 doc/go1.tmpl:773: </p> needs an "updating" sentence, in parallel with the ...
12 years, 3 months ago (2012-02-03 22:03:09 UTC) #4
rsc
On Fri, Feb 3, 2012 at 16:56, <agl@golang.org> wrote: > I couldn't think of a ...
12 years, 3 months ago (2012-02-03 22:13:03 UTC) #5
agl1
PTAL http://codereview.appspot.com/5625045/diff/5001/doc/go1.tmpl File doc/go1.tmpl (right): http://codereview.appspot.com/5625045/diff/5001/doc/go1.tmpl#newcode773 doc/go1.tmpl:773: </p> On 2012/02/03 22:03:10, r wrote: > needs ...
12 years, 3 months ago (2012-02-06 16:28:36 UTC) #6
rsc
We should probably write a gofix for the type change, since it is easy. It ...
12 years, 3 months ago (2012-02-06 16:34:54 UTC) #7
agl1
I've filed http://code.google.com/p/go/issues/detail?id=2905 for the gofix since this CL is pretty large already. http://codereview.appspot.com/5625045/diff/10001/doc/go1.html File ...
12 years, 3 months ago (2012-02-07 17:58:35 UTC) #8
agl1
poke.
12 years, 3 months ago (2012-02-11 17:01:19 UTC) #9
rsc
LGTM Very sorry about dropping this. I thought I'd already replied. I wrote the gofix ...
12 years, 3 months ago (2012-02-13 04:02:28 UTC) #10
agl1
12 years, 3 months ago (2012-02-13 17:38:54 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=9d7addec2635 ***

crypto/...: more fixes for bug 2841

1) Remove the Reset() member in crypto/aes and crypto/des (and
   document the change).
2) Turn several empty error structures into vars. Any remaining error
   structures are either non-empty, or will probably become so in the
   future.
3) Implement SetWriteDeadline for TLS sockets. At the moment, the TLS
   status cannot be reused after a Write error, which is probably fine
   for most uses.
4) Make crypto/aes and crypto/des return a cipher.Block.

R=rsc, r
CC=golang-dev
http://codereview.appspot.com/5625045
Sign in to reply to this message.

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