Remove unused code

This commit is contained in:
Bernd Schoolmann 2024-04-05 08:06:31 +02:00
parent f53a9a13ac
commit 1e1ec95fe3
No known key found for this signature in database

View File

@ -152,10 +152,6 @@ func DecryptWith(s EncString, key SymmetricEncryptionKey) ([]byte, error) {
return nil, fmt.Errorf("decrypt: cipher of unsupported type %q", s.Type)
}
if len(s.IV) != block.BlockSize() {
return nil, fmt.Errorf("decrypt: invalid IV length, expected %d, got %d", block.BlockSize(), len(s.IV))
}
dst, err := decryptAESCBC256(s.IV, s.CT, encKeyData)
if err != nil {
return nil, err