diff options
| author | Eric Biggers <ebiggers@google.com> | 2025-04-28 10:00:32 -0700 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-05 18:20:43 +0800 |
| commit | bf52d93865bde68896d20f2ce6c2f76d96cd678e (patch) | |
| tree | be37edf11cef83127448f599701964c0dca6c5c6 /tools/lib/python/kdoc/python_version.py | |
| parent | 1a49c573bf886349c7bc958b331c700cf18601d8 (diff) | |
crypto: riscv/sha256 - implement library instead of shash
Instead of providing crypto_shash algorithms for the arch-optimized
SHA-256 code, instead implement the SHA-256 library. This is much
simpler, it makes the SHA-256 library functions be arch-optimized, and
it fixes the longstanding issue where the arch-optimized SHA-256 was
disabled by default. SHA-256 still remains available through
crypto_shash, but individual architectures no longer need to handle it.
To match sha256_blocks_arch(), change the type of the nblocks parameter
of the assembly function from int to size_t. The assembly function
actually already treated it as size_t.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
