crypto: Use correct enum

gcc 4.5 shows that the enum constants used come from the wrong enum
type, although the values are the same.  Use the proper constants.

Based on a fix from Mona Hossain <mhossain@codeaurora.org>

(cherry picked from commit ea018ae)

Change-Id: I956f0eb095ffb78295613a79cbda26a9da28adaa
Signed-off-by: David Brown <davidb@codeaurora.org>