Revert "crypto: Use correct enum"

This reverts commit 8dc383dd757c7c78863e21426d23944b45f2fe10.