crypto/qat: fix checks for 3GPP algo bit params
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 11 Jul 2018 18:02:43 +0000 (19:02 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Jul 2018 23:48:10 +0000 (01:48 +0200)
commit64cb90f882704df2cc18e49437ddfdba088dd898
tree96d8ccad6acacd06140cecdb962e5aa0be374ac8
parentb45be46dfd4548acd8f130841d02e97ab7bc7eb8
crypto/qat: fix checks for 3GPP algo bit params

QAT driver checks byte alignment for KASUMI/SNOW 3G/ZUC algorithms using
cipher/auth_param, which are not initialized at this moment yet. Use
operation params instead.

Fixes: 39e0bee48e81 ("crypto/qat: rework request builder for performance")
Cc: stable@dpdk.org
Reported-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/crypto/qat/qat_sym.c