]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix riscv64 chacha crash due to unaligned data
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 27 Sep 2025 20:14:04 +0000 (22:14 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 1 Oct 2025 15:51:11 +0000 (17:51 +0200)
commit22417bc14d6bde173425ba4f87c68be0cf394fa4
treec4441e5733cc5e3cab0b0f1399492de395cd7029
parent0e5e84c48690ecab4eda7cbee948b791623b137a
Fix riscv64 chacha crash due to unaligned data

The linux-riscv64 test machine crashes due to unaligned data,
when the V extension is enabled, while QEMU seems to have no
problems with unaligned data.

So check for aligned data and fall back to C code in case the
input or output values are unaligned.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28684)
crypto/chacha/chacha_riscv.c