[U-Boot] [PATCH][v6] crypto/fsl - Add progressive hashing support using hardware acceleration.

Simon Glass sjg at chromium.org
Mon Feb 23 19:06:57 CET 2015


On 20 February 2015 at 00:21, Gaurav Rana <gaurav.rana at freescale.com> wrote:
> Currently only normal hashing is supported using hardware acceleration.
> Added support for progressive hashing using hardware.
>
> Signed-off-by: Ruchika Gupta <ruchika.gupta at freescale.com>
> Signed-off-by: Gaurav Rana <gaurav.rana at freescale.com>
> CC: Simon Glass <sjg at chromium.org>
> ---
> Changes in v6:
> Modify description for CONFIG_SHA256, CONFIG_SHA256, CONFIG_SHA_PROG_HW_ACCEL,
> CONFIG_SHA_HW_ACCEL in README and Kconfig.

Reviewed-by: Simon Glass <sjg at chromium.org>

>
> Changes in v5:
> Modify description for CONFIG_SHA256, CONFIG_SHA256.
>
> Changes in v4:
> Add CONFIG_SHA256, CONFIG_SHA256, CONFIG_SHA_PROG_HW_ACCEL, CONFIG_SHA_HW_ACCEL to Kconfig.
> Modify README for these configs descriptions.
>
> Changes in v3:
> Remove duplication of code and create function gen_hash_type.
> Modify MAX_SG to MAX_SG_32
>
> Changes in v2:
> Merge to common functions for SHA1 and SHA256.
> Replace malloc and memset with calloc.
> Remove cast conversions for void* pointers.
> Replace hardcoded errors with Macros.
> Corrected comments.
>
>  Kconfig                       |   4 +-
>  README                        |  20 ++++--
>  common/hash.c                 |  10 +++
>  drivers/crypto/fsl/fsl_hash.c | 138 +++++++++++++++++++++++++++++++++++++++++-
>  drivers/crypto/fsl/fsl_hash.h |  34 +++++++++++
>  include/fsl_sec.h             |  26 ++++++++
>  include/hw_sha.h              |  41 ++++++++++++-
>  lib/Kconfig                   |  36 +++++++++++
>  8 files changed, 302 insertions(+), 7 deletions(-)
>  create mode 100644 drivers/crypto/fsl/fsl_hash.h


More information about the U-Boot mailing list