[0/2] crypto: caam - update IV using HW support
mbox series

Message ID 20190610133059.1059-1-horia.geanta@nxp.com
Headers show
Series
  • crypto: caam - update IV using HW support
Related show

Message

Horia Geantă June 10, 2019, 1:30 p.m. UTC
This patch set updates the drivers to rely on HW for providing
the output IV in case of skcipher algorithms.

It's both an improvement, as previously mentioned here:
https://lore.kernel.org/linux-crypto/VI1PR0401MB2591C51C446CFA129B50022298D20@VI1PR0401MB2591.eurprd04.prod.outlook.com
and a fix for the currently broken ctr(aes) IV update.

Horia Geantă (2):
  crypto: caam - use len instead of nents for bulding HW S/G table
  crypto: caam - update IV using HW support

 drivers/crypto/caam/caamalg.c      | 119 ++++++++++++----------
 drivers/crypto/caam/caamalg_desc.c |  31 ++++--
 drivers/crypto/caam/caamalg_desc.h |   4 +-
 drivers/crypto/caam/caamalg_qi.c   | 122 ++++++++++-------------
 drivers/crypto/caam/caamalg_qi2.c  | 152 ++++++++++++++---------------
 drivers/crypto/caam/caamhash.c     |  15 ++-
 drivers/crypto/caam/caampkc.c      |   4 +-
 drivers/crypto/caam/sg_sw_qm.h     |  18 ++--
 drivers/crypto/caam/sg_sw_qm2.h    |  18 ++--
 drivers/crypto/caam/sg_sw_sec4.h   |  18 ++--
 10 files changed, 262 insertions(+), 239 deletions(-)

Comments

Herbert Xu June 20, 2019, 8:06 a.m. UTC | #1
On Mon, Jun 10, 2019 at 04:30:57PM +0300, Horia Geantă wrote:
> This patch set updates the drivers to rely on HW for providing
> the output IV in case of skcipher algorithms.
> 
> It's both an improvement, as previously mentioned here:
> https://lore.kernel.org/linux-crypto/VI1PR0401MB2591C51C446CFA129B50022298D20@VI1PR0401MB2591.eurprd04.prod.outlook.com
> and a fix for the currently broken ctr(aes) IV update.
> 
> Horia Geantă (2):
>   crypto: caam - use len instead of nents for bulding HW S/G table
>   crypto: caam - update IV using HW support
> 
>  drivers/crypto/caam/caamalg.c      | 119 ++++++++++++----------
>  drivers/crypto/caam/caamalg_desc.c |  31 ++++--
>  drivers/crypto/caam/caamalg_desc.h |   4 +-
>  drivers/crypto/caam/caamalg_qi.c   | 122 ++++++++++-------------
>  drivers/crypto/caam/caamalg_qi2.c  | 152 ++++++++++++++---------------
>  drivers/crypto/caam/caamhash.c     |  15 ++-
>  drivers/crypto/caam/caampkc.c      |   4 +-
>  drivers/crypto/caam/sg_sw_qm.h     |  18 ++--
>  drivers/crypto/caam/sg_sw_qm2.h    |  18 ++--
>  drivers/crypto/caam/sg_sw_sec4.h   |  18 ++--
>  10 files changed, 262 insertions(+), 239 deletions(-)

All applied.  Thanks.