crypto: create generic version of ablk_helper