diff options
author | Hans de Goede <hdegoede@redhat.com> | 2019-08-17 16:24:32 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-22 14:57:35 +1000 |
commit | 906a4bb97f5d0389cae9cc3634e8059fed5334b5 (patch) | |
tree | a46f5ac2b721c060e35771a95f7fb6123365b585 /net/mpls | |
parent | ad767ee858b38af634c957a792cb001d54a7b981 (diff) |
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 'net/mpls')
0 files changed, 0 insertions, 0 deletions