commit | a5dd97f86211e91219807db607d740f9896b8e0b | [log] [tgz] |
---|---|---|
author | Martin Willi <martin@strongswan.org> | Sun Nov 11 10:36:29 2018 +0100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Nov 16 14:11:04 2018 +0800 |
tree | df6b82f9a1256896f28a0470b9a72c8056152394 | |
parent | 9b17608f15b940babe2e32522ea29787abd10af2 [diff] |
crypto: x86/chacha20 - Add a 2-block AVX2 variant This variant uses the same principle as the single block SSSE3 variant by shuffling the state matrix after each round. With the wider AVX registers, we can do two blocks in parallel, though. This function can increase performance and efficiency significantly for lengths that would otherwise require a 4-block function. Signed-off-by: Martin Willi <martin@strongswan.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>