+1
−0
+2
−1
crypto/sha256.c
0 → 100644
+243
−0
crypto/sha256_generic.c
deleted100644 → 0
+0
−102
include/crypto/internal/sha2.h
0 → 100644
+28
−0
Loading
As has been done for various other algorithms, rework the design of the SHA-256 library to support arch-optimized implementations, and make crypto/sha256.c expose both generic and arch-optimized shash algorithms that wrap the library functions. This allows users of the SHA-256 library functions to take advantage of the arch-optimized code, and this makes it much simpler to integrate SHA-256 for each architecture. Note that sha256_base.h is not used in the new design. It will be removed once all the architecture-specific code has been updated. Move the generic block function into its own module to avoid a circular dependency from libsha256.ko => sha256-$ARCH.ko => libsha256.ko. Signed-off-by:Eric Biggers <ebiggers@google.com> Add export and import functions to maintain existing export format. Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>