Raw-data attacks in quantum cryptography with partial tomography