Skip to content
Snippets Groups Projects
Commit 485a9364 authored by Niels Möller's avatar Niels Möller
Browse files

* sparc/arcfour-crypt.asm: Bugfix, use lduh and stuh.

Rev: src/nettle/sparc/arcfour-crypt.asm:1.2
parent 442ba31e
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ PROLOGUE(nettle_arcfour_crypt) ...@@ -52,7 +52,7 @@ PROLOGUE(nettle_arcfour_crypt)
be .Lend be .Lend
C Load both I and J C Load both I and J
lduw [CTX + ARCFOUR_I], I lduh [CTX + ARCFOUR_I], I
and I, 0xff, J and I, 0xff, J
srl I, 8, I srl I, 8, I
...@@ -79,7 +79,7 @@ PROLOGUE(nettle_arcfour_crypt) ...@@ -79,7 +79,7 @@ PROLOGUE(nettle_arcfour_crypt)
C Save back I and J C Save back I and J
sll I, 8, I sll I, 8, I
or I, J, I or I, J, I
stuw I, [CTX + ARCFOUR_I] stuh I, [CTX + ARCFOUR_I]
.Lend: .Lend:
ret ret
...@@ -90,6 +90,8 @@ EPILOGUE(nettle_arcfour_crypt) ...@@ -90,6 +90,8 @@ EPILOGUE(nettle_arcfour_crypt)
C Some stats from adriana.lysator.liu.se (SS1000$, 85 MHz), for AES 128 C Some stats from adriana.lysator.liu.se (SS1000$, 85 MHz), for AES 128
C 1: nettle-1.13 C-code C 1: nettle-1.13 C-code
C 2: First working version of the assembler code
C MB/s cycles/byte Code size (bytes) C MB/s cycles/byte Code size (bytes)
C 1: 6.6 12.4 132 C 1: 6.6 12.4 132
C 2: 5.6 14.5 116
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment