]> Cypherpunks repositories - gostls13.git/commit
crypto/...: more fixes for bug 2841
authorAdam Langley <agl@golang.org>
Mon, 13 Feb 2012 17:38:45 +0000 (12:38 -0500)
committerAdam Langley <agl@golang.org>
Mon, 13 Feb 2012 17:38:45 +0000 (12:38 -0500)
commitcdd7e02583325b05024cc1366a59eaafc09e1dc3
treeb61d7bfeb4721a18d2d9e7e69b12927a75dbd47a
parenta52fb458dfd6fcf45256099ab6b03c45c065b621
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
https://golang.org/cl/5625045
17 files changed:
doc/go1.html
doc/go1.tmpl
src/pkg/crypto/aes/cipher.go
src/pkg/crypto/cipher/cbc_aes_test.go
src/pkg/crypto/cipher/cfb_test.go
src/pkg/crypto/cipher/common_test.go
src/pkg/crypto/cipher/ctr_aes_test.go
src/pkg/crypto/cipher/ofb_test.go
src/pkg/crypto/des/block.go
src/pkg/crypto/des/cipher.go
src/pkg/crypto/des/des_test.go
src/pkg/crypto/dsa/dsa.go
src/pkg/crypto/rand/rand_unix.go
src/pkg/crypto/rsa/pkcs1v15.go
src/pkg/crypto/rsa/rsa.go
src/pkg/crypto/tls/conn.go
src/pkg/crypto/x509/x509.go