Skip to content

Commit

Permalink
cryptodev: fix RSA key type name
Browse files Browse the repository at this point in the history
[ upstream commit 3387912 ]

This patch fixes misspelled RTE_RSA_KEY_TYPE_QT,
this will prevent checkpach from complaining wherever
change to RSA is being made.

Fixes: 26008aa ("cryptodev: add asymmetric xform and op definitions")

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
  • Loading branch information
arekk67 authored and bluca committed Feb 28, 2022
1 parent a7aa7d8 commit 7b5609a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/test/test_cryptodev_asym.c
Expand Up @@ -559,7 +559,7 @@ test_one_case(const void *test_case, int sessionless)
status = test_cryptodev_asym_op(
&testsuite_params,
&tc, test_msg, sessionless, i,
RTE_RSA_KET_TYPE_QT);
RTE_RSA_KEY_TYPE_QT);
}
if (status)
break;
Expand Down
2 changes: 1 addition & 1 deletion app/test/test_cryptodev_rsa_test_vectors.h
Expand Up @@ -378,7 +378,7 @@ struct rte_crypto_asym_xform rsa_xform_crt = {
.data = rsa_e,
.length = sizeof(rsa_e)
},
.key_type = RTE_RSA_KET_TYPE_QT,
.key_type = RTE_RSA_KEY_TYPE_QT,
.qt = {
.p = {
.data = rsa_p,
Expand Down
4 changes: 2 additions & 2 deletions drivers/crypto/qat/qat_asym.c
Expand Up @@ -97,7 +97,7 @@ static void qat_clear_arrays_by_alg(struct qat_asym_op_cookie *cookie,
qat_clear_arrays(cookie, QAT_ASYM_MODINV_NUM_IN_PARAMS,
QAT_ASYM_MODINV_NUM_OUT_PARAMS, alg_size);
else if (xform->xform_type == RTE_CRYPTO_ASYM_XFORM_RSA) {
if (xform->rsa.key_type == RTE_RSA_KET_TYPE_QT)
if (xform->rsa.key_type == RTE_RSA_KEY_TYPE_QT)
qat_clear_arrays_crt(cookie, alg_size);
else {
qat_clear_arrays(cookie, QAT_ASYM_RSA_NUM_IN_PARAMS,
Expand Down Expand Up @@ -370,7 +370,7 @@ qat_asym_fill_arrays(struct rte_crypto_asym_op *asym_op,
return -(EINVAL);
}
}
if (xform->rsa.key_type == RTE_RSA_KET_TYPE_QT) {
if (xform->rsa.key_type == RTE_RSA_KEY_TYPE_QT) {

qat_req->input_param_count =
QAT_ASYM_RSA_QT_NUM_IN_PARAMS;
Expand Down
2 changes: 1 addition & 1 deletion lib/librte_cryptodev/rte_crypto_asym.h
Expand Up @@ -146,7 +146,7 @@ enum rte_crypto_rsa_padding_type {
enum rte_crypto_rsa_priv_key_type {
RTE_RSA_KEY_TYPE_EXP,
/**< RSA private key is an exponent */
RTE_RSA_KET_TYPE_QT,
RTE_RSA_KEY_TYPE_QT,
/**< RSA private key is in quintuple format
* See rte_crypto_rsa_priv_key_qt
*/
Expand Down

0 comments on commit 7b5609a

Please sign in to comment.