Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
e5544e56
Commit
e5544e56
authored
Feb 07, 2011
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcm.c (gcm_gf_shift_chunk) : Bug fix for little-endian 8-bit
tables. Rev: nettle/ChangeLog:1.137 Rev: nettle/gcm.c:1.8
parent
0984849e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ChangeLog
ChangeLog
+3
-0
gcm.c
gcm.c
+1
-2
No files found.
ChangeLog
View file @
e5544e56
2011-02-07 Niels Mller <nisse@lysator.liu.se>
* gcm.c (gcm_gf_shift_chunk) : Bug fix for little-endian 8-bit
tables.
* gcm.c (gcm_gf_mul_chunk): Special case first and last iteration.
(gcm_gf_add): New function, a special case of memxor. Use it for
all memxor calls with word-aligned 16 byte blocks. Improves
...
...
gcm.c
View file @
e5544e56
...
...
@@ -283,8 +283,7 @@ gcm_gf_shift_chunk(uint8_t *x)
#endif
#else
/* ! WORDS_BIGENDIAN */
# if SIZEOF_LONG == 4
#define RSHIFT_WORD(x) \
reduce = shift_table[(w[3] >> 56) & 0xff];
reduce
=
shift_table
[(
w
[
3
]
>>
24
)
&
0xff
];
w
[
3
]
=
(
w
[
3
]
<<
8
)
|
(
w
[
2
]
>>
24
);
w
[
2
]
=
(
w
[
2
]
<<
8
)
|
(
w
[
1
]
>>
24
);
w
[
1
]
=
(
w
[
1
]
<<
8
)
|
(
w
[
0
]
>>
24
);
...
...
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