Skip to content
Commit 78c37d19 authored by Alexander Boyko's avatar Alexander Boyko Committed by Herbert Xu
Browse files

crypto: crc32 - add crc32 pclmulqdq implementation and wrappers for table implementation



This patch adds crc32 algorithms to shash crypto api. One is wrapper to
gerneric crc32_le function. Second is crc32 pclmulqdq implementation. It
use hardware provided PCLMULQDQ instruction to accelerate the CRC32 disposal.
This instruction present from Intel Westmere and AMD Bulldozer CPUs.

For intel core i5 I got 450MB/s for table implementation and 2100MB/s
for pclmulqdq implementation.

Signed-off-by: default avatarAlexander Boyko <alexander_boyko@xyratex.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5c22ba66
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment