aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2017-11-22 11:51:36 -0800
committerHerbert Xu <[email protected]>2017-11-29 17:33:32 +1100
commitdbd872a123fab81d0fa235a265c39e5ccdf735b3 (patch)
tree5c69967a0c96c4ae9504d4ee7b6d2c0ddea1373c /tools/perf/scripts/python/bin/stackcollapse-report
parentecf3220d882ae84844909ed6323032aac47aff93 (diff)
crypto: chacha20 - Use unaligned access macros when loading key and IV
The generic ChaCha20 implementation has a cra_alignmask of 3, which ensures that the key passed into crypto_chacha20_setkey() and the IV passed into crypto_chacha20_init() are 4-byte aligned. However, these functions are also called from the ARM and ARM64 implementations of ChaCha20, which intentionally do not have a cra_alignmask set. This is broken because 32-bit words are being loaded from potentially-unaligned buffers without the unaligned access macros. Fix it by using the unaligned access macros when loading the key and IV. Signed-off-by: Eric Biggers <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions