target/arm: Implement an IMPDEF pauth algorithm
commit283fc52ade85eb50141f3b8b85f82b07d016cb17
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 11 Jan 2021 23:57:38 +0000 (11 13:57 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Jan 2021 14:38:51 +0000 (19 14:38 +0000)
tree12369c759d3c8bcbdf62420794bce3f0c951e7eb
parentf1fcb6851aba6dd9838886dc179717a11e344a1c
target/arm: Implement an IMPDEF pauth algorithm

Without hardware acceleration, a cryptographically strong
algorithm is too expensive for pauth_computepac.

Even with hardware accel, we are not currently expecting
to link the linux-user binaries to any crypto libraries,
and doing so would generally make the --static build fail.

So choose XXH64 as a reasonably quick and decent hash.

Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210111235740.462469-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/qemu/xxhash.h
target/arm/cpu.h
target/arm/pauth_helper.c