mbox series

[v2,0/5] Add ARMv8 CE sha1/sha256 support

Message ID 1654107991-598-1-git-send-email-loic.poulain@linaro.org
Headers show
Series Add ARMv8 CE sha1/sha256 support | expand

Message

Loic Poulain June 1, 2022, 6:26 p.m. UTC
This series adds support for the SHA-1 and SHA-256 Secure Hash Algorithm
for CPUs that have support of the ARM v8 Crypto Extensions. It Improves
speed of integrity & signature checking procedures.

V2: 
   - Add cover letter & sha256 support.
   - Kconfig default 'y' only if SHA1 and SHA256 selected

Loic Poulain (5):
  lib: sha1: Add support for hardware specific sha1_process
  sha1: Fix digest state size/type
  armv8 SHA-1 using ARMv8 Crypto Extensions:
  lib: sha256: Add support for hardware specific sha256_process
  armv8 SHA-256 using ARMv8 Crypto Extensions

 arch/arm/cpu/armv8/Kconfig          |  15 ++++
 arch/arm/cpu/armv8/Makefile         |   2 +
 arch/arm/cpu/armv8/sha1_ce_core.S   | 132 +++++++++++++++++++++++++++++++++++
 arch/arm/cpu/armv8/sha1_ce_glue.c   |  21 ++++++
 arch/arm/cpu/armv8/sha256_ce_core.S | 134 ++++++++++++++++++++++++++++++++++++
 arch/arm/cpu/armv8/sha256_ce_glue.c |  21 ++++++
 include/u-boot/sha1.h               |   2 +-
 lib/sha1.c                          |  26 +++++--
 lib/sha256.c                        |  26 +++++--
 9 files changed, 364 insertions(+), 15 deletions(-)
 create mode 100644 arch/arm/cpu/armv8/sha1_ce_core.S
 create mode 100644 arch/arm/cpu/armv8/sha1_ce_glue.c
 create mode 100644 arch/arm/cpu/armv8/sha256_ce_core.S
 create mode 100644 arch/arm/cpu/armv8/sha256_ce_glue.c

Comments

Loic Poulain June 15, 2022, 11:04 p.m. UTC | #1
Hi Folks,

Any comments on this series? Anyone else to CC?

Thanks,
Loic

On Wed, 1 Jun 2022 at 20:26, Loic Poulain <loic.poulain@linaro.org> wrote:
>
> This series adds support for the SHA-1 and SHA-256 Secure Hash Algorithm
> for CPUs that have support of the ARM v8 Crypto Extensions. It Improves
> speed of integrity & signature checking procedures.
>
> V2:
>    - Add cover letter & sha256 support.
>    - Kconfig default 'y' only if SHA1 and SHA256 selected
>
> Loic Poulain (5):
>   lib: sha1: Add support for hardware specific sha1_process
>   sha1: Fix digest state size/type
>   armv8 SHA-1 using ARMv8 Crypto Extensions:
>   lib: sha256: Add support for hardware specific sha256_process
>   armv8 SHA-256 using ARMv8 Crypto Extensions
>
>  arch/arm/cpu/armv8/Kconfig          |  15 ++++
>  arch/arm/cpu/armv8/Makefile         |   2 +
>  arch/arm/cpu/armv8/sha1_ce_core.S   | 132 +++++++++++++++++++++++++++++++++++
>  arch/arm/cpu/armv8/sha1_ce_glue.c   |  21 ++++++
>  arch/arm/cpu/armv8/sha256_ce_core.S | 134 ++++++++++++++++++++++++++++++++++++
>  arch/arm/cpu/armv8/sha256_ce_glue.c |  21 ++++++
>  include/u-boot/sha1.h               |   2 +-
>  lib/sha1.c                          |  26 +++++--
>  lib/sha256.c                        |  26 +++++--
>  9 files changed, 364 insertions(+), 15 deletions(-)
>  create mode 100644 arch/arm/cpu/armv8/sha1_ce_core.S
>  create mode 100644 arch/arm/cpu/armv8/sha1_ce_glue.c
>  create mode 100644 arch/arm/cpu/armv8/sha256_ce_core.S
>  create mode 100644 arch/arm/cpu/armv8/sha256_ce_glue.c
>
> --
> 2.7.4
>
Tom Rini June 16, 2022, 2:39 p.m. UTC | #2
On Thu, Jun 16, 2022 at 01:04:07AM +0200, Loic Poulain wrote:

> Hi Folks,
> 
> Any comments on this series? Anyone else to CC?

I will likely pick this up for next soon, thanks.