Restoration of lost or damaged smart cards