Revert "crypto: Use correct enum"

This reverts commit 2ab51771ee65a6b519e85ec43155246d5d0725c2.