In chacha_zvkb, avoid using the s0 register, which is the frame pointer,
by reallocating KEY0 to t5. This makes stack traces available if e.g. a
crash happens in chacha_zvkb.
No frame pointer maintenance is otherwise required since this is a leaf
function.
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Fixes:
|
||
|---|---|---|
| .. | ||
| chacha-riscv64-zvkb.S | ||
| chacha.h | ||
| poly1305-riscv.pl | ||
| poly1305.h | ||
| sha256-riscv64-zvknha_or_zvknhb-zvkb.S | ||
| sha256.h | ||
| sha512-riscv64-zvknhb-zvkb.S | ||
| sha512.h | ||