~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7c0f9a
)
utils/gcm-ref (demo_table_l): Use an end-swap function that exists.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 16 Jan 2024 13:43:09 +0000
(13:43 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 16 Jan 2024 13:44:00 +0000
(13:44 +0000)
Now `table-l' actually runs at all.
utils/gcm-ref
patch
|
blob
|
blame
|
history
diff --git
a/utils/gcm-ref
b/utils/gcm-ref
index
4a53737
..
ec25bb8
100755
(executable)
--- a/
utils/gcm-ref
+++ b/
utils/gcm-ref
@@
-172,7
+172,7
@@
def demo_table_b(u, v):
@demo
def demo_table_l(u, v):
"""Little-endian table lookup."""
- return table_common(u, v, endswap_words, lambda b: b.getu32l(), 0x18)
+ return table_common(u, v, endswap_words
_32
, lambda b: b.getu32l(), 0x18)
###--------------------------------------------------------------------------
### Implementation using 64×64->128-bit binary polynomial multiplication.