Fix crypto util.

Change-Id: Ib1b5df0a71bf4df47cf6241300b85e21be894987