commit | c3b734dd325dadc73c2f5b4d187208730bf21df5 | [log] [tgz] |
---|---|---|
author | Martin Willi <martin@strongswan.org> | Sun Nov 11 10:36:27 2018 +0100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Nov 16 14:11:04 2018 +0800 |
tree | 1789e2b2e03ffad68be30440b05ee1248b1d5815 | |
parent | db8e15a24957904d10f784a9adc4ea4824ee996c [diff] |
crypto: x86/chacha20 - Support partial lengths in 8-block AVX2 variant Add a length argument to the eight block function for AVX2, so the block function may XOR only a partial length of eight blocks. To avoid unnecessary operations, we integrate XORing of the first four blocks in the final lane interleaving; this also avoids some work in the partial lengths path. Signed-off-by: Martin Willi <martin@strongswan.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>