diff options
author | Russ Cox <rsc@golang.org> | 2011-01-06 11:21:04 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-01-06 11:21:04 -0500 |
commit | a46102d2094126c7e33cfd9b90e739e7ad1ab9b7 (patch) | |
tree | 23e8251e867cf5c261e132c08e3073319fb97451 | |
parent | 754f0402c3d570e9d956b491f0434e1fccff6e6f (diff) | |
download | go-a46102d2094126c7e33cfd9b90e739e7ad1ab9b7.tar.gz go-a46102d2094126c7e33cfd9b90e739e7ad1ab9b7.zip |
crypto/cipher: make NewCBCEncrypter return BlockMode
Fixes #1389.
R=agl1
CC=golang-dev
https://golang.org/cl/3827043
-rw-r--r-- | src/pkg/crypto/cipher/cbc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/crypto/cipher/cbc.go b/src/pkg/crypto/cipher/cbc.go index 3efc863282..4632f882a4 100644 --- a/src/pkg/crypto/cipher/cbc.go +++ b/src/pkg/crypto/cipher/cbc.go @@ -57,7 +57,7 @@ type cbcDecrypter cbc // NewCBCDecrypter returns a BlockMode which decrypts in cipher block chaining // mode, using the given Block. The length of iv must be the same as the // Block's block size as must match the iv used to encrypt the data. -func NewCBCDecrypter(b Block, iv []byte) *cbcDecrypter { +func NewCBCDecrypter(b Block, iv []byte) BlockMode { return (*cbcDecrypter)(newCBC(b, iv)) } |