ports/security/libgcrypt/patches/patch-cipher_camellia-aarch64_S

21 lines
625 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: cipher/camellia-aarch64.S
--- cipher/camellia-aarch64.S.orig
+++ cipher/camellia-aarch64.S
@@ -214,7 +214,7 @@ _gcry_camellia_arm_encrypt_block:
* w3: keybitlen
*/
- adr RTAB1, _gcry_camellia_arm_tables;
+ GET_DATA_POINTER(RTAB1, _gcry_camellia_arm_tables);
mov RMASK, #(0xff<<4); /* byte mask */
add RTAB2, RTAB1, #(1 * 4);
add RTAB3, RTAB1, #(2 * 4);
@@ -313,6 +313,7 @@ _gcry_camellia_arm_decrypt_block:
.ltorg
ELF(.size _gcry_camellia_arm_decrypt_block,.-_gcry_camellia_arm_decrypt_block;)
+.rodata
/* Encryption/Decryption tables */
ELF(.type _gcry_camellia_arm_tables,@object;)
.balign 32