Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Benjamin J. Thompson
Tor
Commits
d45354d5
Commit
d45354d5
authored
Dec 17, 2020
by
David Goulet
Browse files
Merge branch 'tor-gitlab/mr/243' into maint-0.4.5
parents
5a2d01ae
d89974c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug40210
0 → 100644
View file @
d45354d5
o Minor features (crypto):
- Fix undefined behavior on our Keccak library. The bug only appears on
platforms with 32-byte CPU cache lines (e.g. armv5tel) and would result
in wrong digests. Fixes bug 40210; bugfix on 0.2.8.1-alpha. Thanks to
Bernhard Übelacker, Arnd Bergmann and weasel for diagnosing this.
src/ext/keccak-tiny/keccak-tiny.h
View file @
d45354d5
...
...
@@ -21,7 +21,7 @@ typedef struct keccak_state {
size_t
offset
;
uint8_t
finalized
:
1
;
}
keccak_state
;
}
__attribute__
((
aligned
(
8
)))
keccak_state
;
/* Initialize a Keccak instance suitable for SHA-3 hash functions. */
int
keccak_digest_init
(
keccak_state
*
s
,
size_t
bits
);
...
...
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