Unbreak vpaes-x86 implementation.
authorjsing <jsing@openbsd.org>
Thu, 2 Feb 2023 18:19:27 +0000 (18:19 +0000)
committerjsing <jsing@openbsd.org>
Thu, 2 Feb 2023 18:19:27 +0000 (18:19 +0000)
Remove remnants of previous PIC handling.

ok miod@

lib/libcrypto/aes/asm/vpaes-x86.pl

index 38cef61..6e7bd36 100644 (file)
@@ -157,7 +157,6 @@ $k_dsbo=0x2c0;              # decryption sbox final output
        &previous();
 
 &function_begin_B("_vpaes_preheat");
-       &add    ($const,&DWP(0,"esp"));
        &movdqa ("xmm7",&QWP($k_inv,$const));
        &movdqa ("xmm6",&QWP($k_s0F,$const));
        &ret    ();
@@ -368,7 +367,6 @@ $k_dsbo=0x2c0;              # decryption sbox final output
 ##                                                    ##
 ########################################################
 &function_begin_B("_vpaes_schedule_core");
-       &add    ($const,&DWP(0,"esp"));
        &movdqu ("xmm0",&QWP(0,$inp));          # load key (unaligned)
        &movdqa ("xmm2",&QWP($k_rcon,$const));  # load rcon