33
33
// mode, using the given Block. The length of iv must be the same as the
35
35
func NewCBCEncrypter(b Block, iv []byte) BlockMode {
36
39
return (*cbcEncrypter)(newCBC(b, iv))
39
42
func (x *cbcEncrypter) BlockSize() int { return x.blockSize }
41
44
func (x *cbcEncrypter) CryptBlocks(dst, src []byte) {
43
52
for i := 0; i < x.blockSize; i++ {