]> Cypherpunks repositories - gostls13.git/commit
crypto: allocate less.
authorAdam Langley <agl@golang.org>
Tue, 6 Dec 2011 23:25:14 +0000 (18:25 -0500)
committerAdam Langley <agl@golang.org>
Tue, 6 Dec 2011 23:25:14 +0000 (18:25 -0500)
commit554ac03637bd855179c93d76d05b9c847571d0e2
tree66ebc65e3cda1e19e45ce67efc6f86ab591d0376
parentbf59f081c16764633e072824fdc582a6ce9136db
crypto: allocate less.

The code in hash functions themselves could write directly into the
output buffer for a savings of about 50ns. But it's a little ugly so I
wasted a copy.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5440111
12 files changed:
src/pkg/crypto/hmac/hmac.go
src/pkg/crypto/md5/md5.go
src/pkg/crypto/openpgp/s2k/s2k.go
src/pkg/crypto/ripemd160/ripemd160.go
src/pkg/crypto/rsa/rsa.go
src/pkg/crypto/sha1/sha1.go
src/pkg/crypto/sha256/sha256.go
src/pkg/crypto/sha512/sha512.go
src/pkg/crypto/tls/cipher_suites.go
src/pkg/crypto/tls/conn.go
src/pkg/crypto/tls/handshake_client.go
src/pkg/crypto/tls/handshake_server.go