5 if not conf
.CHECK_FUNCS_IN('MD5Init', 'bsd', headers
='bsd/md5.h',
7 conf
.CHECK_FUNCS_IN('MD5Init', 'md5', headers
='sys/md5.h',
9 conf
.CHECK_FUNCS_IN('MD5Init', 'md', headers
='sys/md5.h',
11 conf
.CHECK_FUNCS_IN('CC_MD5_Init', '', headers
='CommonCrypto/CommonDigest.h',
14 if conf
.CHECK_FUNCS('SHA1_Update'):
15 conf
.DEFINE('SHA1_RENAME_NEEDED', 1)
16 if conf
.CHECK_FUNCS('SHA256_Update'):
17 conf
.DEFINE('SHA256_RENAME_NEEDED', 1)
18 if conf
.CHECK_FUNCS('SHA512_Update'):
19 conf
.DEFINE('SHA512_RENAME_NEEDED', 1)
22 # --aes-accel=XXX selects accelerated AES crypto library to use, if any.
25 if Options
.options
.accel_aes
.lower() == "intelaesni":
26 print("Attempting to compile with runtime-switchable x86_64 Intel AES instructions. WARNING - this is temporary.")
27 elif Options
.options
.accel_aes
.lower() != "none":
28 raise Utils
.WafError('--aes-accel=%s is not a valid option. Valid options are [none|intelaesni]' % Options
.options
.accel_aes
)