diff --git a/cipher.go b/cipher.go index 8d8f12fe..8b2b2859 100644 --- a/cipher.go +++ b/cipher.go @@ -149,7 +149,7 @@ type evpCipher struct { } func newEVPCipher(key []byte, kind cipherKind) (*evpCipher, error) { - cipher := loadCipher(kind, cipherModeECB) + cipher := loadCipher(kind, cipherModeCBC) if cipher == nil { return nil, errors.New("crypto/cipher: unsupported cipher: " + kind.String()) }