crypto: x86/chacha20 - Support partial lengths in 4-block SSSE3 variant
authorMartin Willi <martin@strongswan.org>
Sun, 11 Nov 2018 09:36:26 +0000 (10:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Nov 2018 06:11:04 +0000 (14:11 +0800)
commitdb8e15a24957904d10f784a9adc4ea4824ee996c
tree09bdff5ed5ce78b01444625411c9a3b6083f2368
parente4e72063d3c0ee9ba10faeb5645dcdaae2d733e9
crypto: x86/chacha20 - Support partial lengths in 4-block SSSE3 variant

Add a length argument to the quad block function for SSSE3, so the
block function may XOR only a partial length of four blocks.

As we already have the stack set up, the partial XORing does not need
to. This gives a slightly different function trailer, so we keep that
separate from the 1-block function.

Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/chacha20-ssse3-x86_64.S
arch/x86/crypto/chacha20_glue.c