tetra: fix to-salt conversion for computation types