cryptbox tristate out, fixed simulation