summaryrefslogtreecommitdiffstats
path: root/lib/crc8.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-12-29 14:09:08 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2016-12-30 19:52:47 +0800
commitc821f6ab2e47946f35ee2f30781c5185e5d07f65 (patch)
treeb46ed60d6257d3302fb6fb15ce4d3d86f1e136fb /lib/crc8.c
parentd79b5d0bbf2e3aded13b0542160bde48e95d3d44 (diff)
downloadop-kernel-dev-c821f6ab2e47946f35ee2f30781c5185e5d07f65.zip
op-kernel-dev-c821f6ab2e47946f35ee2f30781c5185e5d07f65.tar.gz
crypto: skcipher - introduce walksize attribute for SIMD algos
In some cases, SIMD algorithms can only perform optimally when allowed to operate on multiple input blocks in parallel. This is especially true for bit slicing algorithms, which typically take the same amount of time processing a single block or 8 blocks in parallel. However, other SIMD algorithms may benefit as well from bigger strides. So add a walksize attribute to the skcipher algorithm definition, and wire it up to the skcipher walk API. To avoid confusion between the skcipher and AEAD attributes, rename the skcipher_walk chunksize attribute to 'stride', and set it from the walksize (in the skcipher case) or from the chunksize (in the AEAD case). Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crc8.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud