lib/crypto: squash 'cast between incompatible function types' warning