lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <7F88D9730FA04A02ACCE0B47584422C5@H270>
Date: Mon, 8 Apr 2024 11:38:56 +0200
From: "Stefan Kanthak" <stefan.kanthak@...go.de>
To: <linux-kernel@...r.kernel.org>>,
	<linux-crypto@...r.kernel.org>
Cc: <tim.c.chen@...ux.intel.com>,
	<sean.m.gulley@...el.com>
Subject: [PATCH 2/2] crypto: s(h)aving 16 byte constant off arch/x86/crypto/sha1_ni_asm.S

Get rid of 16 byte constant, use shift instead of mask

--- -/arch/x86/crypto/sha1_ni_asm.S
+++ +/arch/x86/crypto/sha1_ni_asm.S
@@ -104,9 +104,9 @@
         add             DATA_PTR, NUM_BLKS      /* pointer to end of data */
 
         /* load initial hash values */
-        pinsrd          $3, 1*16(DIGEST_PTR), E0
+        pinsrd          $0, 1*16(DIGEST_PTR), E0
         movdqu          0*16(DIGEST_PTR), ABCD
-        pand            UPPER_WORD_MASK(%rip), E0
+        pslldq          $12, E0
         pshufd          $0x1B, ABCD, ABCD
 
         movdqa          PSHUFFLE_BYTE_FLIP_MASK(%rip), SHUF_MASK
@@ -297,8 +297,3 @@
 .align 16
 PSHUFFLE_BYTE_FLIP_MASK:
         .octa 0x000102030405060708090a0b0c0d0e0f
-
-.section        .rodata.cst16.UPPER_WORD_MASK, "aM", @progbits, 16
-.align 16
-UPPER_WORD_MASK:
-        .octa 0xFFFFFFFF000000000000000000000000

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ