2005-12-06 10:04:58 +08:00
|
|
|
|
|
|
|
@echo off
|
2008-01-04 08:48:14 +08:00
|
|
|
|
|
|
|
SET ASMOPTS=-DOPENSSL_IA32_SSE2
|
2005-12-06 10:04:58 +08:00
|
|
|
echo Generating x86 for NASM assember
|
|
|
|
|
|
|
|
echo Bignum
|
|
|
|
cd crypto\bn\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl bn-586.pl win32n %ASMOPTS% > bn_win32.asm
|
|
|
|
perl co-586.pl win32n %ASMOPTS% > co_win32.asm
|
2008-01-05 08:45:27 +08:00
|
|
|
perl x86-mont.pl win32n %ASMOPTS% > mo_win32.asm
|
2008-01-04 08:48:14 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo AES
|
|
|
|
cd crypto\aes\asm
|
|
|
|
perl aes-586.pl win32n %ASMOPTS% > a_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo DES
|
|
|
|
cd crypto\des\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl des-586.pl win32n %ASMOPTS% > d_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo "crypt(3)"
|
|
|
|
|
|
|
|
cd crypto\des\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl crypt586.pl win32n %ASMOPTS% > y_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo Blowfish
|
|
|
|
|
|
|
|
cd crypto\bf\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl bf-586.pl win32n %ASMOPTS% > b_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo CAST5
|
|
|
|
cd crypto\cast\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl cast-586.pl win32n %ASMOPTS% > c_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo RC4
|
|
|
|
cd crypto\rc4\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl rc4-586.pl win32n %ASMOPTS% > r4_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo MD5
|
|
|
|
cd crypto\md5\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl md5-586.pl win32n %ASMOPTS% > m5_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo SHA1
|
|
|
|
cd crypto\sha\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl sha1-586.pl win32n %ASMOPTS% > s1_win32.asm
|
|
|
|
perl sha256-586.pl win32n %ASMOPTS% > sha256_win32.asm
|
|
|
|
perl sha512-586.pl win32n %ASMOPTS% > sha512_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo RIPEMD160
|
|
|
|
cd crypto\ripemd\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl rmd-586.pl win32n %ASMOPTS% > rm_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo RC5\32
|
|
|
|
cd crypto\rc5\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl rc5-586.pl win32n %ASMOPTS% > r5_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
|
|
|
echo Whirlpool
|
|
|
|
cd crypto\whrlpool\asm
|
2008-01-04 08:48:14 +08:00
|
|
|
perl wp-mmx.pl win32n %ASMOPTS% > wp_win32.asm
|
2005-12-06 10:04:58 +08:00
|
|
|
cd ..\..\..
|
|
|
|
|
2005-12-07 00:35:40 +08:00
|
|
|
echo CPU-ID
|
|
|
|
cd crypto
|
2008-01-04 08:48:14 +08:00
|
|
|
perl x86cpuid.pl win32n %ASMOPTS% > cpu_win32.asm
|
2005-12-07 00:35:40 +08:00
|
|
|
cd ..
|
|
|
|
|
2005-12-06 10:04:58 +08:00
|
|
|
echo on
|
|
|
|
|
|
|
|
perl util\mkfiles.pl >MINFO
|
|
|
|
perl util\mk1mf.pl nasm VC-WIN32 >ms\nt.mak
|
|
|
|
perl util\mk1mf.pl dll nasm VC-WIN32 >ms\ntdll.mak
|
|
|
|
perl util\mk1mf.pl nasm BC-NT >ms\bcb.mak
|
|
|
|
|
|
|
|
perl util\mkdef.pl 32 libeay > ms\libeay32.def
|
|
|
|
perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
|