mbox series

[0/3] Improvements to FIT hashing

Message ID 20210217032042.425512-1-joel@jms.id.au
Headers show
Series Improvements to FIT hashing | expand

Message

Joel Stanley Feb. 17, 2021, 3:20 a.m. UTC
Here are some small changes to the FIT hashing code in order to use
more code from common/, which in turns allows hw implementations of SHA.

This was motivated by a need to reduce the SPL size for the Aspeed
platforms by using the hardware engine. I have a driver for the Aspeed
SoC that I will submit.

Joel Stanley (3):
  hw_sha: Fix coding style errors
  fit: Use hash.c to call SHA code
  hash: Allow for SHA512 hardware implementations

 common/hash.c      | 24 ++++++++++++++++++++++--
 common/image-fit.c | 34 ++++++++--------------------------
 include/hw_sha.h   | 38 ++++++++++++++++++++++++++++++++------
 lib/Kconfig        | 15 +++++++--------
 4 files changed, 69 insertions(+), 42 deletions(-)

-- 
2.30.0

Comments

Joel Stanley April 12, 2021, 11:50 p.m. UTC | #1
Helli Simon,

On Wed, 17 Feb 2021 at 03:20, Joel Stanley <joel@jms.id.au> wrote:
>

> Here are some small changes to the FIT hashing code in order to use

> more code from common/, which in turns allows hw implementations of SHA.

>

> This was motivated by a need to reduce the SPL size for the Aspeed

> platforms by using the hardware engine. I have a driver for the Aspeed

> SoC that I will submit.


Do you have any thoughts on this series?

Cheers,

Joel

>

> Joel Stanley (3):

>   hw_sha: Fix coding style errors

>   fit: Use hash.c to call SHA code

>   hash: Allow for SHA512 hardware implementations

>

>  common/hash.c      | 24 ++++++++++++++++++++++--

>  common/image-fit.c | 34 ++++++++--------------------------

>  include/hw_sha.h   | 38 ++++++++++++++++++++++++++++++++------

>  lib/Kconfig        | 15 +++++++--------

>  4 files changed, 69 insertions(+), 42 deletions(-)

>

> --

> 2.30.0

>