Loading drivers/crypto/msm/qce50.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ /* /* * QTI Crypto Engine driver. * QTI Crypto Engine driver. * * * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. */ */ #define pr_fmt(fmt) "QCE50: %s: " fmt, __func__ #define pr_fmt(fmt) "QCE50: %s: " fmt, __func__ Loading Loading @@ -902,6 +902,11 @@ static int _ce_setup_cipher(struct qce_device *pce_dev, struct qce_req *creq, switch (creq->alg) { switch (creq->alg) { case CIPHER_ALG_DES: case CIPHER_ALG_DES: if (creq->mode != QCE_MODE_ECB) { if (creq->mode != QCE_MODE_ECB) { if (ivsize > MAX_IV_LENGTH) { pr_err("%s: error: Invalid length parameter\n", __func__); return -EINVAL; } _byte_stream_to_net_words(enciv32, creq->iv, ivsize); _byte_stream_to_net_words(enciv32, creq->iv, ivsize); pce = cmdlistinfo->encr_cntr_iv; pce = cmdlistinfo->encr_cntr_iv; pce->data = enciv32[0]; pce->data = enciv32[0]; Loading Loading
drivers/crypto/msm/qce50.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ /* /* * QTI Crypto Engine driver. * QTI Crypto Engine driver. * * * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. */ */ #define pr_fmt(fmt) "QCE50: %s: " fmt, __func__ #define pr_fmt(fmt) "QCE50: %s: " fmt, __func__ Loading Loading @@ -902,6 +902,11 @@ static int _ce_setup_cipher(struct qce_device *pce_dev, struct qce_req *creq, switch (creq->alg) { switch (creq->alg) { case CIPHER_ALG_DES: case CIPHER_ALG_DES: if (creq->mode != QCE_MODE_ECB) { if (creq->mode != QCE_MODE_ECB) { if (ivsize > MAX_IV_LENGTH) { pr_err("%s: error: Invalid length parameter\n", __func__); return -EINVAL; } _byte_stream_to_net_words(enciv32, creq->iv, ivsize); _byte_stream_to_net_words(enciv32, creq->iv, ivsize); pce = cmdlistinfo->encr_cntr_iv; pce = cmdlistinfo->encr_cntr_iv; pce->data = enciv32[0]; pce->data = enciv32[0]; Loading