Checks the specified hash value against the hash of the provided
        salt and value.

        An example usage of :class:`check_value` would be::

            val_hash = hashing.hash_value('mysecretdata', salt='abcd')
            if hashing.check_value(val_hash, 'mysecretdata', salt='abcd'):
                # do something special

        :param value_hash: The hash value to check against
        :param value: The value we want hashed to compare
        :param salt: The salt to use when generating the hash of ``value``. Default is ''.
        :return: True if equal, False otherwise
        :rtype: bool

def check_value(self, value_hash, value, salt=''):
        '''Checks the specified hash value against the hash of the provided
        salt and value.

        An example usage of :class:`check_value` would be::

            val_hash = hashing.hash_value('mysecretdata', salt='abcd')
            if hashing.check_value(val_hash, 'mysecretdata', salt='abcd'):
                # do something special

        :param value_hash: The hash value to check against
        :param value: The value we want hashed to compare
        :param salt: The salt to use when generating the hash of ``value``. Default is ''.
        :return: True if equal, False otherwise
        :rtype: bool
        '''
        h = self.hash_value(value, salt=salt)
        return h == value_hash