Skip to content
GitLab
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
fccdf01b
Commit
fccdf01b
authored
Nov 24, 2014
by
Niels Möller
Browse files
GCM_SET_KEY: Rename macro argument to avoid collision with struct tag.
Spotted by Nikos Mavrogiannopoulos.
parent
68fc6af9
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
fccdf01b
2014-11-24 Niels Möller <nisse@lysator.liu.se>
* gcm.h (GCM_SET_KEY): Rename macro argument KEY to avoid
collision with a struct tag. Spotted by Nikos Mavrogiannopoulos.
* testsuite/eddsa-verify-test.c (test_eddsa): Fixed test case bug,
showing up as use of uninitialized data with valgrind.
...
...
gcm.h
View file @
fccdf01b
...
...
@@ -151,9 +151,9 @@ gcm_digest(struct gcm_ctx *ctx, const struct gcm_key *key,
{ struct gcm_key key; struct gcm_ctx gcm; type cipher; }
/* NOTE: Avoid using NULL, as we don't include anything defining it. */
#define GCM_SET_KEY(ctx, set_key, encrypt, key) \
#define GCM_SET_KEY(ctx, set_key, encrypt,
gcm_
key) \
do { \
(set_key)(&(ctx)->cipher, (key)); \
(set_key)(&(ctx)->cipher, (
gcm_
key)); \
if (0) (encrypt)(&(ctx)->cipher, 0, (void *)0, (void *)0); \
gcm_set_key(&(ctx)->key, &(ctx)->cipher, \
(nettle_cipher_func *) (encrypt)); \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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