crypto/qat: unify symmetric functions