Troubleshooting cryptography mode switching