]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto: sha512: Add mechanism to keep C code as fallback for SHA512_ASM
authorCharalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
Thu, 26 Jan 2023 15:32:47 +0000 (16:32 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:55:49 +0000 (15:55 +0100)
commitdb44a69aa5ce4bdc3e232ad9d7216af0eda65836
treed2b3fd0492e15965e46cbd88eed88b67dcc3db20
parent17073066520dbbf1ef3ce4856c570d61e9548083
crypto: sha512: Add mechanism to keep C code as fallback for SHA512_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 SHA512_ASM is defined (but rename it from sha512_block_data_order
to sha512_block_data_order_c). The macro INCLUDE_C_SHA512 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/sha512.c