mbox series

[0/3] crypto: ccree: add SM3 support

Message ID 1539867599-20504-1-git-send-email-yael.chemla@foss.arm.com (mailing list archive)
Headers show
Series crypto: ccree: add SM3 support | expand

Message

Yael Chemla Oct. 18, 2018, 12:59 p.m. UTC
Add support for SM3 in CryptoCell 713.

Yael Chemla (3):
  crypto: ccree: adjust hash length to suit certain context specifics
  crypto: ccree:  modify set_cipher_mode usage from cc_hash
  crypto: ccree: add SM3 support

 drivers/crypto/Kconfig                  |   1 +
 drivers/crypto/ccree/cc_aead.c          |  19 +++-
 drivers/crypto/ccree/cc_crypto_ctx.h    |   4 +-
 drivers/crypto/ccree/cc_driver.c        |  10 +-
 drivers/crypto/ccree/cc_driver.h        |   2 +-
 drivers/crypto/ccree/cc_hash.c          | 175 +++++++++++++++++++++++---------
 drivers/crypto/ccree/cc_hw_queue_defs.h |  27 +++++
 7 files changed, 182 insertions(+), 56 deletions(-)

Comments

Gilad Ben-Yossef Oct. 18, 2018, 1:26 p.m. UTC | #1
On Thu, Oct 18, 2018 at 4:00 PM Yael Chemla <yael.chemla@foss.arm.com> wrote:
>
> Add support for SM3 in CryptoCell 713.
>
> Yael Chemla (3):
>   crypto: ccree: adjust hash length to suit certain context specifics
>   crypto: ccree:  modify set_cipher_mode usage from cc_hash
>   crypto: ccree: add SM3 support
>
>  drivers/crypto/Kconfig                  |   1 +
>  drivers/crypto/ccree/cc_aead.c          |  19 +++-
>  drivers/crypto/ccree/cc_crypto_ctx.h    |   4 +-
>  drivers/crypto/ccree/cc_driver.c        |  10 +-
>  drivers/crypto/ccree/cc_driver.h        |   2 +-
>  drivers/crypto/ccree/cc_hash.c          | 175 +++++++++++++++++++++++---------
>  drivers/crypto/ccree/cc_hw_queue_defs.h |  27 +++++
>  7 files changed, 182 insertions(+), 56 deletions(-)
>
> --
> 2.7.4
>

Herbert, these go on top of my own previous patch set that adds the
CryptoCell 713 and its SM4 cipher support.

Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>

Thanks,
Gilad
Yael Chemla Oct. 21, 2018, 7:06 a.m. UTC | #2
Hi Herbert, 
I'm sorry for notifying just now, but this patch set should be applies on top of
"crypto: ccree: add CryptoCell 713 baseline support" patch set by Gilad Ben-Yossef
Hence failures reported by kbuild test robot .

> -----Original Message-----
> From: Gilad Ben-Yossef <gilad@benyossef.com>
> Sent: Thursday, 18 October 2018 16:26
> To: yaeceh01 <yael.chemla@foss.arm.com>
> Cc: Herbert Xu <herbert@gondor.apana.org.au>; David Miller
> <davem@davemloft.net>; Linux Crypto Mailing List <linux-
> crypto@vger.kernel.org>; Ofir Drang <ofir.drang@arm.com>; Linux kernel
> mailing list <linux-kernel@vger.kernel.org>
> Subject: Re: [PATCH 0/3] crypto: ccree: add SM3 support
> 
> On Thu, Oct 18, 2018 at 4:00 PM Yael Chemla <yael.chemla@foss.arm.com>
> wrote:
> >
> > Add support for SM3 in CryptoCell 713.
> >
> > Yael Chemla (3):
> >   crypto: ccree: adjust hash length to suit certain context specifics
> >   crypto: ccree:  modify set_cipher_mode usage from cc_hash
> >   crypto: ccree: add SM3 support
> >
> >  drivers/crypto/Kconfig                  |   1 +
> >  drivers/crypto/ccree/cc_aead.c          |  19 +++-
> >  drivers/crypto/ccree/cc_crypto_ctx.h    |   4 +-
> >  drivers/crypto/ccree/cc_driver.c        |  10 +-
> >  drivers/crypto/ccree/cc_driver.h        |   2 +-
> >  drivers/crypto/ccree/cc_hash.c          | 175 +++++++++++++++++++++++------
> ---
> >  drivers/crypto/ccree/cc_hw_queue_defs.h |  27 +++++
> >  7 files changed, 182 insertions(+), 56 deletions(-)
> >
> > --
> > 2.7.4
> >
> 
> Herbert, these go on top of my own previous patch set that adds the
> CryptoCell 713 and its SM4 cipher support.
> 
> Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
> 
> Thanks,
> Gilad
> 
> --
> Gilad Ben-Yossef
> Chief Coffee Drinker
> 
> values of β will give rise to dom!
Herbert Xu Nov. 9, 2018, 9:51 a.m. UTC | #3
On Thu, Oct 18, 2018 at 01:59:56PM +0100, Yael Chemla wrote:
> Add support for SM3 in CryptoCell 713.
> 
> Yael Chemla (3):
>   crypto: ccree: adjust hash length to suit certain context specifics
>   crypto: ccree:  modify set_cipher_mode usage from cc_hash
>   crypto: ccree: add SM3 support
> 
>  drivers/crypto/Kconfig                  |   1 +
>  drivers/crypto/ccree/cc_aead.c          |  19 +++-
>  drivers/crypto/ccree/cc_crypto_ctx.h    |   4 +-
>  drivers/crypto/ccree/cc_driver.c        |  10 +-
>  drivers/crypto/ccree/cc_driver.h        |   2 +-
>  drivers/crypto/ccree/cc_hash.c          | 175 +++++++++++++++++++++++---------
>  drivers/crypto/ccree/cc_hw_queue_defs.h |  27 +++++
>  7 files changed, 182 insertions(+), 56 deletions(-)

All applied.  Thanks.