Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
11d241f3
Commit
11d241f3
authored
May 14, 2002
by
Niels Möller
Browse files
* x86/machine.m4 (AES_STORE): New macro.
Rev: src/nettle/x86/machine.m4:1.3
parent
e8721844
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/nettle/x86/machine.m4
View file @
11d241f3
...
...
@@ -13,3 +13,20 @@ define(<AES_LAST_ROUND>, <
movl %e<>$4<>x,%ebp
andl <$>0xff000000,%ebp
orl %ebp,%edi>)dnl
dnl AES_STORE(key, dst)
dnl Adds the subkey pointed to by %esi to %eax-%edx,
dnl and stores the result in the area pointed to by %edi.
dnl Note that x86 allows unaligned accesses.
dnl Would it be preferable to interleave the loads and stores?
define(<AES_STORE>, <
xorl ($1),%eax
xorl 4($1),%ebx
xorl 8($1),%ecx
xorl 12($1),%edx
movl %eax,($2)
movl %ebx,4($2)
movl %ecx,8($2)
movl %edx,12($2)>)dnl
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment