]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
ppc64: Update offset in gcm-aes assembly.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 26 Mar 2025 16:45:23 +0000 (17:45 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 26 Mar 2025 16:45:23 +0000 (17:45 +0100)
powerpc64/p8/gcm-aes-decrypt.asm
powerpc64/p8/gcm-aes-encrypt.asm

index 10ac072e0f3da93bf19b397ea6cf56771f5fb289..87236988458f5b949a6e114cbeb242833da59741 100644 (file)
@@ -143,7 +143,7 @@ IF_BE(`vspltisb    LE_TEMP,0x03')
     lxvd2x         VSR(H4M),r10,HT
     lxvd2x         VSR(H4L),r11,HT
 
-    addi HT, HT,  4048  C Advance to point to the 'CTR' field in the context
+    addi HT, HT,  2000  C Advance to point to the 'CTR' field in the context
 
     lxvd2x         VSR(D),r9,HT                C load 'X' pointer
     C byte-reverse of each doubleword permuting on little-endian mode
index e326fbedf6b50babed29733a94945057890b8359..925a14015e11d0472c66717a35cbae9452f491b4 100644 (file)
@@ -143,7 +143,7 @@ IF_BE(`vspltisb    LE_TEMP,0x03')
     lxvd2x         VSR(H4M),r10,HT
     lxvd2x         VSR(H4L),r11,HT
 
-    addi HT, HT,  4048  C Advance to point to the 'CTR' field in the context
+    addi HT, HT,  2000  C Advance to point to the 'CTR' field in the context
 
     lxvd2x         VSR(D),r9,HT                C load 'X' pointer
     C byte-reverse of each doubleword permuting on little-endian mode