ports/security/libgcrypt/patches/patch-cipher_camellia-aesni-avx-amd64_S

38 lines
835 B
Text

Index: cipher/camellia-aesni-avx-amd64.S
--- cipher/camellia-aesni-avx-amd64.S.orig
+++ cipher/camellia-aesni-avx-amd64.S
@@ -619,7 +619,7 @@
vmovdqu y6, 14 * 16(rio); \
vmovdqu y7, 15 * 16(rio);
-.text
+.rodata
.align 16
#define SHUFB_BYTES(idx) \
@@ -764,6 +764,7 @@
.long 0x0f0f0f0f
+.previous
.align 8
ELF(.type __camellia_enc_blk16,@function;)
@@ -1720,7 +1721,7 @@ ELF(.size _gcry_camellia_aesni_avx_ocb_auth,.-_gcry_ca
vpsllq $(64-(nror)), out, out; \
vpaddd t0, out, out;
-
+.rodata
.align 16
.Linv_shift_row_and_unpcklbw:
.byte 0x00, 0xff, 0x0d, 0xff, 0x0a, 0xff, 0x07, 0xff
@@ -1752,7 +1753,7 @@ ELF(.size _gcry_camellia_aesni_avx_ocb_auth,.-_gcry_ca
.Lsigma6:
.long 0xB3E6C1FD, 0xB05688C2;
-
+.previous
.align 8
ELF(.type __camellia_avx_setup128,@function;)
__camellia_avx_setup128: