]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto: sha256: Add mechanism to keep C code as fallback for SHA256_ASM
authorCharalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
Thu, 26 Jan 2023 13:01:42 +0000 (14:01 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:55:49 +0000 (15:55 +0100)
commit204a1c9854193bd7fcc3ea1baaf685c9a67d17bb
tree91c13d7a7f510219144d11b3394c886abdc1a9b6
parentf6631e38f901e2a439604fac2bd62933f9dbb8ad
crypto: sha256: Add mechanism to keep C code as fallback for SHA256_ASM

Currently, architectures have to decide if they want the C code or an
arch-specific implementation. Let's add a macro, that allows to keep the C
code even if SHA256_ASM is defined (but rename it from sha256_block_data_order
to sha256_block_data_order_c). The macro INCLUDE_C_SHA256 can be used by
architectures, that want the C code as fallback code.

Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21923)
crypto/sha/sha256.c