code: def _verified_iv_length(iv_length, algorithm_suite):
      # type: (int, AlgorithmSuite) -> int
      
      if iv_length != algorithm_suite.iv_len:
          raise SerializationError(
              "Specified IV length ({length}) does not match algorithm IV length ({algorithm})".format(
                  length=iv_length, algorithm=algorithm_suite
              )
          )
  
      return iv_length
docs: Verify an IV length for an algorithm suite.
  
      :param int iv_length: IV length to verify
      :param AlgorithmSuite algorithm_suite: Algorithm suite to verify against
      :return: IV length
      :rtype: int
      :raises SerializationError: if IV length does not match algorithm suite