Remove unused code
This commit is contained in:
parent
f53a9a13ac
commit
1e1ec95fe3
|
@ -152,10 +152,6 @@ func DecryptWith(s EncString, key SymmetricEncryptionKey) ([]byte, error) {
|
||||||
return nil, fmt.Errorf("decrypt: cipher of unsupported type %q", s.Type)
|
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)
|
dst, err := decryptAESCBC256(s.IV, s.CT, encKeyData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue