'Returns the number of iterations that should be run via the KDF.
:return:
An integer'

@property
def kdf_iterations(self):

    encryption_algo = self[u'algorithm'].native
    if (encryption_algo == u'pbes2'):
        return self[u'parameters'][u'key_derivation_func'][u'parameters'][u'iteration_count'].native
    if (encryption_algo.find(u'.') == (-1)):
        if (encryption_algo.find(u'_') != (-1)):
            return self[u'parameters'][u'iterations'].native
        raise ValueError(unwrap(u'\n                                                                Encryption    algorithm    "%s"    does    not    have    a    registered    key\n                                                                derivation    function\n                                                                ', encryption_algo))
    raise ValueError(unwrap(u'\n                                                Unrecognized    encryption    algorithm    "%s",    can    not    determine    key\n                                                derivation    iterations\n                                                ', encryption_algo))
