def map_demisto_keys(pyshark_results, keys_transform_map):
    """
    Map all of the whitelisted keys from the transform map dict to the pyshark result

    :param pyshark_results: object from pyshark, use values and transform his keys
    :param keys_transform_map: map of key transformation
    :return: new dict with transformed keys.
    """
    new_keys = {}
    for k, v in pyshark_results.items():
        if k not in keys_transform_map:
            continue
        new_keys[keys_transform_map[k]] = v

    return new_keys