def METHOD_NAME(events):
    """
    Extract digest for MokList and MokListX.
    """
    out = {"mokdig": [], "mokxdig": []}
    for event in events:
        if event["EventType"] != "EV_IPL":
            continue
        if event["Event"]["String"] == "MokList":
            out["mokdig"].append(event_to_sha256(event))
        elif event["Event"]["String"] == "MokListX":
            out["mokxdig"].append(event_to_sha256(event))
    return out