crypto: create generic version of ablk_helper

https://github.com/neobuddy89/hammerhead/commit/8c89d4903f93d914180bde44a6febcda68d5be4f#diff-4