diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-13 17:36:04 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-13 17:36:04 -0700 |
| commit | d142ab35ee0b7f9e84115fe3e4c3de4a9ac35f5e (patch) | |
| tree | 6c66db813be51bde9d94abca203694e470e4c5f4 /crypto | |
| parent | 370c3883195566ee3e7d79e0146c3d735a406573 (diff) | |
| parent | 8fdef85d601db670e9c178314eedffe7bbb07e52 (diff) | |
| download | lwn-d142ab35ee0b7f9e84115fe3e4c3de4a9ac35f5e.tar.gz lwn-d142ab35ee0b7f9e84115fe3e4c3de4a9ac35f5e.zip | |
Merge tag 'crc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux
Pull CRC updates from Eric Biggers:
- Several improvements related to crc_kunit, to align with the standard
KUnit conventions and make it easier for developers and CI systems to
run this test suite
- Add an arm64-optimized implementation of CRC64-NVME
- Remove unused code for big endian arm64
* tag 'crc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
lib/crc: arm64: Simplify intrinsics implementation
lib/crc: arm64: Use existing macros for kernel-mode FPU cflags
lib/crc: arm64: Drop unnecessary chunking logic from crc64
lib/crc: arm64: Assume a little-endian kernel
lib/crc: arm64: add NEON accelerated CRC64-NVMe implementation
lib/crc: arm64: Drop check for CONFIG_KERNEL_MODE_NEON
crypto: crc32c - Remove another outdated comment
crypto: crc32c - Remove more outdated usage information
kunit: configs: Enable all CRC tests in all_tests.config
lib/crc: tests: Add a .kunitconfig file
lib/crc: tests: Add CRC_ENABLE_ALL_FOR_KUNIT
lib/crc: tests: Make crc_kunit test only the enabled CRC variants
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/crc32c.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/crypto/crc32c.c b/crypto/crc32c.c index 1eff54dde2f7..9c9d0ae21101 100644 --- a/crypto/crc32c.c +++ b/crypto/crc32c.c @@ -1,8 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* - * Cryptographic API. - * - * CRC32C chksum + * crypto_shash support for CRC-32C * *@Article{castagnoli-crc, * author = { Guy Castagnoli and Stefan Braeuer and Martin Herrman}, @@ -15,16 +13,6 @@ * pages = {}, * month = {June}, *} - * Used by the iSCSI driver, possibly others, and derived from - * the iscsi-crc.c module of the linux-iscsi driver at - * http://linux-iscsi.sourceforge.net. - * - * Following the example of lib/crc32, this function is intended to be - * flexible and useful for all users. Modules that currently have their - * own crc32c, but hopefully may be able to use this one are: - * net/sctp (please add all your doco to here if you change to - * use this one!) - * <endoflist> * * Copyright (c) 2004 Cisco Systems, Inc. * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au> @@ -49,11 +37,6 @@ struct chksum_desc_ctx { u32 crc; }; -/* - * Steps through buffer one byte at a time, calculates reflected - * crc using table. - */ - static int chksum_init(struct shash_desc *desc) { struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); |
