From 1e1ec95fe3fe5a50278c92521e161bdafa1c04aa Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 5 Apr 2024 08:06:31 +0200 Subject: [PATCH] Remove unused code --- agent/bitwarden/crypto/encstring.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/agent/bitwarden/crypto/encstring.go b/agent/bitwarden/crypto/encstring.go index 0536d7e..710efac 100644 --- a/agent/bitwarden/crypto/encstring.go +++ b/agent/bitwarden/crypto/encstring.go @@ -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