提交 c79c5a25 编写于 作者: A Andy Polyakov

des-596.pl update: short-circuit reference to DES_SPtrans.

上级 9960bdc6
...@@ -24,6 +24,8 @@ $small_footprint=1 if (grep(/\-DOPENSSL_SMALL_FOOTPRINT/,@ARGV)); ...@@ -24,6 +24,8 @@ $small_footprint=1 if (grep(/\-DOPENSSL_SMALL_FOOTPRINT/,@ARGV));
# one can discuss setting this variable to 1 unconditionally, as # one can discuss setting this variable to 1 unconditionally, as
# the folded loop is only 3% slower than unrolled, but >7 times smaller # the folded loop is only 3% slower than unrolled, but >7 times smaller
&public_label("DES_SPtrans");
&DES_encrypt_internal(); &DES_encrypt_internal();
&DES_decrypt_internal(); &DES_decrypt_internal();
&DES_encrypt("DES_encrypt1",1); &DES_encrypt("DES_encrypt1",1);
...@@ -153,7 +155,10 @@ sub DES_encrypt ...@@ -153,7 +155,10 @@ sub DES_encrypt
} }
# PIC-ification:-) # PIC-ification:-)
&picmeup($trans,"DES_SPtrans"); &call (&label("pic_point"));
&set_label("pic_point");
&blindpop($trans);
&lea ($trans,&DWP(&label("DES_SPtrans")."-".&label("pic_point"),$trans));
&mov( "ecx", &wparam(1) ); &mov( "ecx", &wparam(1) );
...@@ -309,7 +314,6 @@ sub FP_new ...@@ -309,7 +314,6 @@ sub FP_new
sub DES_SPtrans sub DES_SPtrans
{ {
&public_label("DES_SPtrans");
&set_label("DES_SPtrans",64); &set_label("DES_SPtrans",64);
&data_word(0x02080800, 0x00080000, 0x02000002, 0x02080802); &data_word(0x02080800, 0x00080000, 0x02000002, 0x02080802);
&data_word(0x02000000, 0x00080802, 0x00080002, 0x02000002); &data_word(0x02000000, 0x00080802, 0x00080002, 0x02000002);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册