Skip to content

Commit

Permalink
crypto/qat: fix status in RSA decryption
Browse files Browse the repository at this point in the history
[ upstream commit 0a9e639 ]

This commit fixes not set crypto op status when decrypting
with RSA algorithm.

Fixes: e2c5f4e ("crypto/qat: support RSA in asym")

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
  • Loading branch information
arekk67 authored and cpaelzer committed Nov 30, 2021
1 parent b3f9982 commit 5fd855c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/crypto/qat/qat_asym.c
Expand Up @@ -629,6 +629,8 @@ static void qat_asym_collect_response(struct rte_crypto_op *rx_op,
rte_memcpy(rsa_result,
cookie->output_array[0],
alg_size_in_bytes);
rx_op->status =
RTE_CRYPTO_OP_STATUS_SUCCESS;
break;
default:
QAT_LOG(ERR, "Padding not supported");
Expand Down

0 comments on commit 5fd855c

Please sign in to comment.