]> Cypherpunks repositories - gostls13.git/commit
crypto: switch block ciphers to detination first.
authorAdam Langley <agl@golang.org>
Wed, 3 Nov 2010 14:43:43 +0000 (10:43 -0400)
committerAdam Langley <agl@golang.org>
Wed, 3 Nov 2010 14:43:43 +0000 (10:43 -0400)
commit02939dec80e398d77a842f064da4fe412182951b
tree8a84818d24f850c83a7c4da391f2270d40a5bc20
parentb5135b34c921d74e812b96828bbb59dc24a400b7
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.

R=rsc, r
CC=golang-dev
https://golang.org/cl/2751042
14 files changed:
src/pkg/crypto/aes/aes_test.go
src/pkg/crypto/aes/block.go
src/pkg/crypto/aes/cipher.go
src/pkg/crypto/block/cbc.go
src/pkg/crypto/block/cfb.go
src/pkg/crypto/block/cipher.go
src/pkg/crypto/block/cmac.go
src/pkg/crypto/block/ctr.go
src/pkg/crypto/block/ecb_test.go
src/pkg/crypto/blowfish/blowfish_test.go
src/pkg/crypto/blowfish/cipher.go
src/pkg/crypto/xtea/block.go
src/pkg/crypto/xtea/cipher.go
src/pkg/crypto/xtea/xtea_test.go