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
Dmitry Baryshkov
nettle
Commits
6a9060e4
Commit
6a9060e4
authored
Sep 20, 2010
by
Niels Möller
Browse files
(CAMELLIA_ROUNDSM): Moved addition of key to the end, to use a 64-bit
xor. Rev: nettle/camellia-crypt-internal.c:1.3
parent
5e826a63
Changes
1
Show whitespace changes
Inline
Side-by-side
camellia-crypt-internal.c
View file @
6a9060e4
...
@@ -76,8 +76,6 @@
...
@@ -76,8 +76,6 @@
^ T->sp3033[((x) >> 40) & 0xff] \
^ T->sp3033[((x) >> 40) & 0xff] \
^ T->sp4404[((x) >> 32) & 0xff]; \
^ T->sp4404[((x) >> 32) & 0xff]; \
/* il == (t1^t3^t4),(t1^t2^t4),(t1^t2^t3),(t2^t3^t4) */
\
/* il == (t1^t3^t4),(t1^t2^t4),(t1^t2^t3),(t2^t3^t4) */
\
__il ^= (k) >> 32; \
__ir ^= (k) & 0xffffffff; \
__ir ^= __il; \
__ir ^= __il; \
/* ir == (t1^t3^t4^t6^t7^t8),(t1^t2^t4^t5^t7^t8), \
/* ir == (t1^t3^t4^t6^t7^t8),(t1^t2^t4^t5^t7^t8), \
(t1^t2^t3^t5^t6^t8),(t2^t3^t4^t5^t6^t7) \
(t1^t2^t3^t5^t6^t8),(t2^t3^t4^t5^t6^t7) \
...
@@ -88,6 +86,7 @@
...
@@ -88,6 +86,7 @@
/* il == (t1^t2^t6^t7^t8),(t2^t3^t5^t7^t8), \
/* il == (t1^t2^t6^t7^t8),(t2^t3^t5^t7^t8), \
(t3^t4^t5^t6^t8),(t1^t4^t5^t6^t7) \
(t3^t4^t5^t6^t8),(t1^t4^t5^t6^t7) \
== y5,y6,y7,y8 */
\
== y5,y6,y7,y8 */
\
y ^= (k); \
y ^= ((uint64_t) __ir << 32) | __il; \
y ^= ((uint64_t) __ir << 32) | __il; \
} while (0)
} while (0)
...
...
Write
Preview
Markdown
is supported
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