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: <9ab205ba-1bcb-f01a-a8b4-a7736791fadc@huawei.com>
Date:   Mon, 20 Apr 2020 19:23:55 +0800
From:   Yunfeng Ye <yeyunfeng@...wei.com>
To:     <gregkh@...uxfoundation.org>, <yeyunfeng@...wei.com>,
        <herbert@...dor.apana.org.au>, <ebiggers@...gle.com>,
        <alexios.zavras@...el.com>, <tglx@...utronix.de>,
        <linux-kernel@...r.kernel.org>
CC:     <hushiyuan@...wei.com>, <hewenliang4@...wei.com>
Subject: [PATCH] crc-t10dif: Replace string names with CRC_T10DIF_STRING

The commit b76377543b73 ("crc-t10dif: Pick better transform if one becomes
available") add the macro CRC_T10DIF_STRING, so it's better to use
CRC_T10DIF_STRING instead of the "crct10dif" names.

Signed-off-by: Yunfeng Ye <yeyunfeng@...wei.com>
---
 lib/crc-t10dif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/crc-t10dif.c b/lib/crc-t10dif.c
index 8cc01a603416..87a081f7e662 100644
--- a/lib/crc-t10dif.c
+++ b/lib/crc-t10dif.c
@@ -37,7 +37,7 @@ static int crc_t10dif_rehash(struct notifier_block *self, unsigned long val, voi
 		mutex_unlock(&crc_t10dif_mutex);
 		return 0;
 	}
-	new = crypto_alloc_shash("crct10dif", 0, 0);
+	new = crypto_alloc_shash(CRC_T10DIF_STRING, 0, 0);
 	if (IS_ERR(new)) {
 		mutex_unlock(&crc_t10dif_mutex);
 		return 0;
@@ -87,7 +87,7 @@ __u16 crc_t10dif(const unsigned char *buffer, size_t len)
 static int __init crc_t10dif_mod_init(void)
 {
 	crypto_register_notifier(&crc_t10dif_nb);
-	crct10dif_tfm = crypto_alloc_shash("crct10dif", 0, 0);
+	crct10dif_tfm = crypto_alloc_shash(CRC_T10DIF_STRING, 0, 0);
 	if (IS_ERR(crct10dif_tfm)) {
 		static_key_slow_inc(&crct10dif_fallback);
 		crct10dif_tfm = NULL;
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ