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
Wim Lewis
nettle
Commits
7e9b73e0
Commit
7e9b73e0
authored
Sep 28, 2013
by
Niels Möller
Browse files
MD_PAD: Don't depend on sizeof of the count field(s).
parent
4611f79c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
7e9b73e0
2013-09-28 Niels Möller <nisse@lysator.liu.se>
* macros.h (MD_PAD): Use size argument, don't depend on
sizeof of the count field(s).
2013-09-22 Niels Möller <nisse@lysator.liu.se>
* x86_64/gcm-hash8.asm: New file.
...
...
macros.h
View file @
7e9b73e0
...
...
@@ -225,7 +225,7 @@ do { \
assert(__md_i < sizeof((ctx)->block)); \
(ctx)->block[__md_i++] = 0x80; \
\
if (__md_i > (sizeof((ctx)->block) -
2*
size
of((ctx)->count_low
))) \
if (__md_i > (sizeof((ctx)->block) -
(
size)))
\
{
/* No room for length in this block. Process it and \
pad with another one */
\
memset((ctx)->block + __md_i, 0, sizeof((ctx)->block) - __md_i); \
...
...
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