def ReadIDsForAllSignedBinaries(self, cursor=None
                                 ):
    """Returns ids for all signed binaries in the DB."""
    cursor.execute(
        "SELECT binary_type, binary_path FROM signed_binary_references")
    return [
        rdf_objects.SignedBinaryID(binary_type=binary_type, path=binary_path)
        for binary_type, binary_path in cursor.fetchall()
    ]
Returns ids for all signed binaries in the DB.