crypto: fix build in < 5.0 tree

Change-Id: Ie4ed3e91cfb7e509bac1d6db885bd3f415d2b168