1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:11:21 -06:00
go/src/pkg/crypto
Luke Curley 701982f173 crypto/cipher: improved cbc performance
decrypt: reduced the number of copy calls from 2n to 1.
encrypt: reduced the number of copy calls from n to 1.

Encryption is straight-forward: use dst instead of tmp when
xoring the block with the iv.

Decryption now loops backwards through the blocks abusing the
fact that the previous block's ciphertext (src) is the iv. This
means we don't need to copy the iv every time, in addition to
using dst instead of tmp like encryption.

R=golang-codereviews, agl, mikioh.mikioh
CC=golang-codereviews
https://golang.org/cl/50900043
2014-01-17 11:07:04 -05:00
..
aes all: change textflags from numbers to symbols. 2013-08-12 10:25:36 -07:00
cipher crypto/cipher: improved cbc performance 2014-01-17 11:07:04 -05:00
des crypto/des: faster permutation. 2013-07-31 22:06:48 +02:00
dsa build: remove dead code 2013-03-22 17:28:22 -04:00
ecdsa all: be more idiomatic when documenting boolean return values. 2013-07-23 11:59:49 +10:00
elliptic crypto/elliptic: add constant-time, P-256 implementation. 2013-06-27 13:31:05 -04:00
hmac crypto/hmac: add tests for Size() and BlockSize() 2013-12-29 20:56:05 +11:00
md5 all: add missing copyright 2013-12-17 06:52:32 -08:00
rand all: add solaris build tags 2014-01-07 23:53:30 -05:00
rc4 crypto/rc4: fix type errors in pure Go implementation 2013-12-12 14:32:31 -05:00
rsa crypto/rsa: support unpadded signatures. 2014-01-06 16:11:58 -05:00
sha1 crypto/sha1, crypto/sha256, crypto/sha512: use copy for partial block 2014-01-06 01:34:56 +11:00
sha256 crypto/sha256: block implementation in 386 assembly 2014-01-06 13:31:22 -05:00
sha512 crypto/sha512: avoid duplicate block declaration on 386 2014-01-07 23:50:31 +11:00
subtle crypto/rsa: check for minimal PKCS#1 v1.5 padding. 2013-05-15 10:27:34 -04:00
tls crypto/tls: support renegotiation extension. 2014-01-09 13:38:11 -05:00
x509 all: add solaris build tags 2014-01-07 23:53:30 -05:00
crypto.go crypto: include hash number in panic message. 2013-08-05 14:23:32 -04:00