diff options
author | Hans de Goede <hdegoede@redhat.com> | 2019-08-17 17:24:32 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-22 07:57:35 +0300 |
commit | 906a4bb97f5d0389cae9cc3634e8059fed5334b5 (patch) | |
tree | a46f5ac2b721c060e35771a95f7fb6123365b585 /arch/x86 | |
parent | ad767ee858b38af634c957a792cb001d54a7b981 (diff) | |
download | linux-906a4bb97f5d0389cae9cc3634e8059fed5334b5.tar.xz |
crypto: sha256 - Use get/put_unaligned_be32 to get input, memzero_explicit
Use get/put_unaligned_be32 in lib/crypto/sha256.c to load / store data
so that it can be used with unaligned buffers too, making it more generic.
And use memzero_explicit for better clearing of sensitive data.
Note unlike other patches in this series this commit actually makes
functional changes to the sha256 code as used by the purgatory code.
This fully aligns the lib/crypto/sha256.c sha256 implementation with the
one from crypto/sha256_generic.c allowing us to remove the latter in
further patches in this series.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions