def _hex2dec(s):
    """
    returns the int represented by hex string s

    :param s: string
    :return: int
    """
    if not len(s) == 2:
        raise ValueError('s(' + str(s) + ') did not fit for _hex2dec')
    else:
        return int(s, base=16)
