forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: crc32 - Rename generic implementation
The generic crc32 implementation is currently called crc32. This is a problem because it clashes with the lib implementation of crc32. This patch renames the crypto crc32 to crc32_generic so that it is consistent with crc32c. An alias for the driver is also added. Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,7 @@ static struct shash_alg alg = { | |
.digestsize = CHKSUM_DIGEST_SIZE, | ||
.base = { | ||
.cra_name = "crc32", | ||
.cra_driver_name = "crc32-table", | ||
.cra_driver_name = "crc32-generic", | ||
.cra_priority = 100, | ||
.cra_blocksize = CHKSUM_BLOCK_SIZE, | ||
.cra_ctxsize = sizeof(u32), | ||
|
@@ -157,3 +157,4 @@ MODULE_AUTHOR("Alexander Boyko <[email protected]>"); | |
MODULE_DESCRIPTION("CRC32 calculations wrapper for lib/crc32"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS_CRYPTO("crc32"); | ||
MODULE_ALIAS_CRYPTO("crc32-generic"); |