From: Niels Möller Date: Sat, 29 Mar 2025 15:20:32 +0000 (+0100) Subject: ppc64: Comment fix and micro optimization of ghash_set_key. X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=99a9c92935f1476e5d7cedd237c9a013632a888e;p=thirdparty%2Fnettle.git ppc64: Comment fix and micro optimization of ghash_set_key. --- diff --git a/powerpc64/p8/ghash-set-key.asm b/powerpc64/p8/ghash-set-key.asm index cda6f2e2..c3b8283a 100644 --- a/powerpc64/p8/ghash-set-key.asm +++ b/powerpc64/p8/ghash-set-key.asm @@ -98,7 +98,6 @@ IF_LE(` vxor LE_MASK,LE_MASK,LE_TEMP C 0x07060504030201000F0E0D0C0B0A0908 ') - C 'H' is assigned by gcm_set_key() to the middle element of the table lxvd2x VSR(H),0,KEY C load 'H' C byte-reverse of each doubleword permuting on little-endian mode IF_LE(` @@ -188,11 +187,8 @@ IF_LE(` xxmrgld VSR(H2L),VSR(H4),VSR(Hm2) C store H3M, H3L, H4M, H4L - li r7,4*16 - li r8,5*16 - li r9,6*16 - li r10,7*16 - stxvd2x VSR(H1M),r7,CTX + addi CTX, CTX, 0x40 + stxvd2x VSR(H1M),0,CTX stxvd2x VSR(H1L),r8,CTX stxvd2x VSR(H2M),r9,CTX stxvd2x VSR(H2L),r10,CTX