Backport aes-x86_64.pl update from HEAD and revisit same code in aes-586.pl.
[openssl.git] / crypto / aes / asm / aes-586.pl
index 89fa2617944b5658a967f2557667929c508eafef..3bc46a968e37c768fe5465c2dd32f56c03c771b0 100755 (executable)
@@ -955,8 +955,9 @@ my $mark=&DWP(60+240,"esp");        #copy of aes_key->rounds
 
     &align     (4);
     &set_label("enc_tail");
-       &push   ($key eq "edi" ? $key : "");    # push ivp
+       &mov    ($s0,$key eq "edi" ? $key : "");
        &mov    ($key,$_out);                   # load out
+       &push   ($s0);                          # push ivp
        &mov    ($s1,16);
        &sub    ($s1,$s2);
        &cmp    ($key,$acc);                    # compare with inp