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 ea018aec12910a82074f85a9ffa487a05109ed67)

Change-Id: I956f0eb095ffb78295613a79cbda26a9da28adaa
Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: nobodyAtall <tsogkas@ceid.upatras.gr>
Signed-off-by: garwedgess <garethwilliams21@gmail.com>