in v3/internal/aes_cbc_content_cipher.go [18:32]
func NewAESCBCContentCipher(materials materials.CryptographicMaterials) (ContentCipher, error) {
materials.TagLength = aesCbcTagSizeBits
if len(materials.CEKAlgorithm) == 0 {
materials.CEKAlgorithm = AESCBCPKCS5Padding
}
cipher, err := newAESCBC(materials, AESCBCPadder)
if err != nil {
return nil, err
}
return &aesCBCContentCipher{
CryptographicMaterials: materials,
Cipher: cipher,
}, nil
}