Shut up memory debuggers complaining about AES x86 assembler module
authorAndy Polyakov <appro@openssl.org>
Sun, 8 Jul 2007 19:41:38 +0000 (19:41 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 8 Jul 2007 19:41:38 +0000 (19:41 +0000)
[from stable].
PR: 1508,1320

crypto/aes/asm/aes-586.pl

index ec58ae0552057b992971eeb159c125170a3dd8d9..89fa2617944b5658a967f2557667929c508eafef 100755 (executable)
@@ -940,7 +940,6 @@ my $mark=&DWP(60+240,"esp");        #copy of aes_key->rounds
 
        &cmp    ($mark,0);              # was the key schedule copied?
        &mov    ("edi",$_key);
-       &mov    ("esp",$_esp);
        &je     (&label("skip_ezero"));
        # zero copy of key schedule
        &mov    ("ecx",240/4);
@@ -948,6 +947,7 @@ my $mark=&DWP(60+240,"esp");        #copy of aes_key->rounds
        &align  (4);
        &data_word(0xABF3F689); # rep stosd
        &set_label("skip_ezero")
+       &mov    ("esp",$_esp);
        &popf   ();
     &set_label("enc_out");
        &function_end_A();
@@ -1197,7 +1197,6 @@ my $mark=&DWP(60+240,"esp");      #copy of aes_key->rounds
     &set_label("dec_out");
     &cmp       ($mark,0);              # was the key schedule copied?
     &mov       ("edi",$_key);
-    &mov       ("esp",$_esp);
     &je                (&label("skip_dzero"));
     # zero copy of key schedule
     &mov       ("ecx",240/4);
@@ -1205,6 +1204,7 @@ my $mark=&DWP(60+240,"esp");      #copy of aes_key->rounds
     &align     (4);
     &data_word(0xABF3F689);    # rep stosd
     &set_label("skip_dzero")
+    &mov       ("esp",$_esp);
     &popf      ();
 &function_end("AES_cbc_encrypt");
 }