diff options
author | Andy Polyakov <appro@openssl.org> | 2011-12-14 21:30:25 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-12-14 21:30:25 +0000 |
commit | 3918de9ad111a6456e43056f007a910c471ec855 (patch) | |
tree | 5daa530630e5f5a61473bfa290f6e539d0e032a4 /crypto/aes | |
parent | 96fe35e7d420add39f572304b7b8bf175f7528fb (diff) |
vpaes-x86.pl: portability fix.
PR: 2657
Diffstat (limited to 'crypto/aes')
-rw-r--r-- | crypto/aes/asm/vpaes-x86.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/aes/asm/vpaes-x86.pl b/crypto/aes/asm/vpaes-x86.pl index 84a6f6d336..30446e60db 100644 --- a/crypto/aes/asm/vpaes-x86.pl +++ b/crypto/aes/asm/vpaes-x86.pl @@ -762,7 +762,7 @@ $k_dsbo=0x2c0; # decryption sbox final output &mov ($magic,0x30); &mov ($out,0); - &lea ($const,&DWP(&label("_vpaes_consts")."+0x30-".&label("pic_point"))); + &mov ($const,&label("_vpaes_consts")."+0x30-".&label("pic_point")); &call ("_vpaes_schedule_core"); &set_label("pic_point"); @@ -792,7 +792,7 @@ $k_dsbo=0x2c0; # decryption sbox final output &and ($magic,32); &xor ($magic,32); # nbist==192?0:32; - &lea ($const,&DWP(&label("_vpaes_consts")."+0x30-".&label("pic_point"))); + &mov ($const,&label("_vpaes_consts")."+0x30-".&label("pic_point")); &call ("_vpaes_schedule_core"); &set_label("pic_point"); @@ -801,7 +801,7 @@ $k_dsbo=0x2c0; # decryption sbox final output &function_end("${PREFIX}_set_decrypt_key"); &function_begin("${PREFIX}_encrypt"); - &lea ($const,&DWP(&label("_vpaes_consts")."+0x30-".&label("pic_point"))); + &mov ($const,&label("_vpaes_consts")."+0x30-".&label("pic_point")); &call ("_vpaes_preheat"); &set_label("pic_point"); &mov ($inp,&wparam(0)); # inp @@ -820,7 +820,7 @@ $k_dsbo=0x2c0; # decryption sbox final output &function_end("${PREFIX}_encrypt"); &function_begin("${PREFIX}_decrypt"); - &lea ($const,&DWP(&label("_vpaes_consts")."+0x30-".&label("pic_point"))); + &mov ($const,&label("_vpaes_consts")."+0x30-".&label("pic_point")); &call ("_vpaes_preheat"); &set_label("pic_point"); &mov ($inp,&wparam(0)); # inp @@ -858,7 +858,7 @@ $k_dsbo=0x2c0; # decryption sbox final output &mov (&DWP(8,"esp"),$const); # save ivp &mov ($out,$round); # $out works as $len - &lea ($const,&DWP(&label("_vpaes_consts")."+0x30-".&label("pic_point"))); + &mov ($const,&label("_vpaes_consts")."+0x30-".&label("pic_point")); &call ("_vpaes_preheat"); &set_label("pic_point"); &cmp ($magic,0); |