03cd45e2c7
This adds initial support for assembly crypto acceleration on x86_64 for ELF (Linux, *BSD, Solaris) and Mach-O (OS-X) systems. The build method is a little different than OpenSSL and OpenBSD. All the .s files are generated ahead of time when the tarball is generated, so there are no complicated makefile rules at configure/build time. This also means the builds are faster and perl is not required on the build system. Thanks to Wouter Clarie for providing the initial cleanup and patch that this is based on.
42 lines
1.4 KiB
Makefile
42 lines
1.4 KiB
Makefile
|
|
ASM_X86_64_ELF = aes/aes-elf-x86_64.s
|
|
ASM_X86_64_ELF += aes/bsaes-elf-x86_64.s
|
|
ASM_X86_64_ELF += aes/vpaes-elf-x86_64.s
|
|
ASM_X86_64_ELF += aes/aesni-elf-x86_64.s
|
|
ASM_X86_64_ELF += aes/aesni-sha1-elf-x86_64.s
|
|
ASM_X86_64_ELF += bn/modexp512-elf-x86_64.s
|
|
ASM_X86_64_ELF += bn/mont-elf-x86_64.s
|
|
ASM_X86_64_ELF += bn/mont5-elf-x86_64.s
|
|
ASM_X86_64_ELF += bn/gf2m-elf-x86_64.s
|
|
ASM_X86_64_ELF += camellia/cmll-elf-x86_64.s
|
|
ASM_X86_64_ELF += md5/md5-elf-x86_64.s
|
|
ASM_X86_64_ELF += modes/ghash-elf-x86_64.s
|
|
ASM_X86_64_ELF += rc4/rc4-elf-x86_64.s
|
|
ASM_X86_64_ELF += rc4/rc4-md5-elf-x86_64.s
|
|
ASM_X86_64_ELF += sha/sha1-elf-x86_64.s
|
|
ASM_X86_64_ELF += sha/sha256-elf-x86_64.S
|
|
ASM_X86_64_ELF += sha/sha512-elf-x86_64.S
|
|
ASM_X86_64_ELF += whrlpool/wp-elf-x86_64.s
|
|
ASM_X86_64_ELF += cpuid-elf-x86_64.S
|
|
|
|
EXTRA_DIST += $(ASM_X86_64_ELF)
|
|
|
|
if HOST_ASM_ELF_X86_64
|
|
libcrypto_la_CFLAGS += -DAES_ASM
|
|
libcrypto_la_CFLAGS += -DBSAES_ASM
|
|
libcrypto_la_CFLAGS += -DVPAES_ASM
|
|
libcrypto_la_CFLAGS += -DOPENSSL_IA32_SSE2
|
|
libcrypto_la_CFLAGS += -DOPENSSL_BN_ASM_MONT
|
|
libcrypto_la_CFLAGS += -DOPENSSL_BN_ASM_MONT5
|
|
libcrypto_la_CFLAGS += -DOPENSSL_BN_ASM_GF2m
|
|
libcrypto_la_CFLAGS += -DMD5_ASM
|
|
libcrypto_la_CFLAGS += -DGHASH_ASM
|
|
libcrypto_la_CFLAGS += -DRSA_ASM
|
|
libcrypto_la_CFLAGS += -DSHA1_ASM
|
|
libcrypto_la_CFLAGS += -DSHA256_ASM
|
|
libcrypto_la_CFLAGS += -DSHA512_ASM
|
|
libcrypto_la_CFLAGS += -DWHIRLPOOL_ASM
|
|
libcrypto_la_CFLAGS += -DOPENSSL_CPUID_OBJ
|
|
libcrypto_la_SOURCES += $(ASM_X86_64_ELF)
|
|
endif
|