Commit 4ab4b7ff authored by Niels Möller's avatar Niels Möller
Browse files

(_aes_crypt): Allocate only 32 bytes local storage on the stack.

Calculate wtxt and tmp using offsets from %sp, not %fp.

Rev: src/nettle/sparc/aes.asm:1.71
parent 7f1562f0
......@@ -66,15 +66,19 @@ define(t1, %o1)
define(t2, %o2)
define(t3, %o3)
define(<FRAME_SIZE>, 32)
define(<FRAME_WTXT>, 0)
define(<FRAME_TMP>, 16)
! Why -136?
save %sp, -136, %sp
save %sp, -FRAME_SIZE, %sp
cmp length, 0
be .Lend
! wtxt
add %fp, -24, wtxt
add %fp, -40, tmp
add %sp, FRAME_WTXT, wtxt
add %sp, FRAME_TMP, tmp
ld [ctx + AES_NROUNDS], nrounds
! Compute xor, so that we can swap efficiently.
xor wtxt, tmp, diff
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment