code: def _item_attributes_match(crypto_config, plaintext_item, encrypted_item):
      for name, value in plaintext_item.items():
          if crypto_config.attribute_actions.action(name) == CryptoAction.ENCRYPT_AND_SIGN:
              continue
          if encrypted_item.get(name) != value:
              return False
      return True