CVSROOT:        /cvs
Module name:    src
Changes by:     js...@cvs.openbsd.org   2025/02/14 05:01:58

Modified files:
        lib/libcrypto/arch/alpha: Makefile.inc crypto_arch.h 
        lib/libcrypto/arch/amd64: Makefile.inc crypto_arch.h 
        lib/libcrypto/arch/arm: Makefile.inc crypto_arch.h 
        lib/libcrypto/arch/hppa: Makefile.inc crypto_arch.h 
        lib/libcrypto/arch/i386: Makefile.inc crypto_arch.h 
        lib/libcrypto/arch/mips64: Makefile.inc crypto_arch.h 
        lib/libcrypto/arch/powerpc: Makefile.inc crypto_arch.h 
        lib/libcrypto/arch/powerpc64: Makefile.inc 
        lib/libcrypto/arch/sparc64: Makefile.inc crypto_arch.h 
        lib/libcrypto/sha: sha1.c sha256.c sha512.c 

Log message:
Replace Makefile based SHA*_ASM defines with HAVE_SHA_* defines.

Currently, SHA{1,256,512}_ASM defines are used to remove the C
implementation of sha{1,256,512}_block_data_order() when it is provided
by assembly. However, this prevents the C implementation from being used
as a fallback.

Rename the C sha*_block_data_order() to sha*_block_generic() and provide
a sha*_block_data_order() that calls sha*_block_generic(). Replace the
Makefile based SHA*_ASM defines with two HAVE_SHA_* defines that allow
these functions to be compiled in or removed, such that machine specific
verisons can be provided. This should effectively be a no-op on any
platform that defined SHA{1,256,512}_ASM.

ok tb@

Reply via email to