thread_scheme => "(unknown)", # Assume we don't know
thread_defines => [],
- des_asm_src => "des_enc.c fcrypt_b.c",
aes_asm_src => "aes_core.c aes_cbc.c",
bf_asm_src => "bf_enc.c",
md5_asm_src => "",
x86_asm => {
template => 1,
- des_asm_src => "des-586.s crypt586.s",
aes_asm_src => "aes-586.s vpaes-x86.s aesni-x86.s",
bf_asm_src => "bf-586.s",
md5_asm_src => "md5-586.s",
},
sparcv9_asm => {
template => 1,
- des_asm_src => "des_enc-sparc.S fcrypt_b.c dest4-sparcv9.S",
aes_asm_src => "aes_core.c aes_cbc.c aes-sparcv9.S aest4-sparcv9.S aesfx-sparcv9.S",
md5_asm_src => "md5-sparcv9.S",
sha1_asm_src => "sha1-sparcv9.S sha256-sparcv9.S sha512-sparcv9.S",
},
sparcv8_asm => {
template => 1,
- des_asm_src => "des_enc-sparc.S fcrypt_b.c",
},
alpha_asm => {
template => 1,
export vars as
accessor functions.
- des_asm_src => Assembler implementation of core DES
- encryption functions.
- Defaults to 'des_enc.c fcrypt_b.c'
aes_asm_src => Assembler implementation of core AES
functions.
Defaults to 'aes_core.c aes_cbc.c'
"loutflag",
"ex_libs",
"bn_ops",
- "des_asm_src",
"aes_asm_src",
"bf_asm_src",
"md5_asm_src",
+$DESASM=des_enc.c fcrypt_b.c
+IF[{- !$disabled{asm} -}]
+ $DESASM_x86=des-586.s crypt586.s
+ $DESASM_ia64=ghash-ia64.s
+ $DESASM_sparcv9=des_enc-sparc.S fcrypt_b.c dest4-sparcv9.S
+ $DESASM_sparcv8=des_enc-sparc.S fcrypt_b.c
+
+ # Now that we have defined all the arch specific variables, use the
+ # appropriate one
+ IF[$DESASM_{- $target{asm_arch} -}]
+ $DESASM=$DESASM_{- $target{asm_arch} -}
+ ENDIF
+ENDIF
+
LIBS=../../libcrypto
SOURCE[../../libcrypto]=\
set_key.c ecb_enc.c cbc_enc.c \
ecb3_enc.c cfb64enc.c cfb64ede.c cfb_enc.c \
ofb64ede.c ofb64enc.c ofb_enc.c \
str2key.c pcbc_enc.c qud_cksm.c rand_key.c \
- {- $target{des_asm_src} -} \
+ $DESASM \
fcrypt.c xcbc_enc.c cbc_cksm.c
GENERATE[des_enc-sparc.S]=asm/des_enc.m4