Lines Matching refs:CBC
5 // Cipher block chaining (CBC) mode.
7 // CBC provides confidentiality by xoring (chaining) each plaintext block
14 type cbc struct {
21 func newCBC(b Block, iv []byte) *cbc {
22 return &cbc{
30 type cbcEncrypter cbc
33 // optimized implementation of CBC encryption, like crypto/aes.
47 if cbc, ok := b.(cbcEncAble); ok {
48 return cbc.NewCBCEncrypter(iv)
87 type cbcDecrypter cbc
90 // optimized implementation of CBC decryption, like crypto/aes.
104 if cbc, ok := b.(cbcDecAble); ok {
105 return cbc.NewCBCDecrypter(iv)