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
f13fd113
Commit
f13fd113
authored
Mar 31, 2012
by
Niels Möller
Browse files
New macro, ROTL32.
parent
60f3e677
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
f13fd113
2012-03-31 Niels Möller <nisse@lysator.liu.se>
* macros.h (ROTL32): New macro, to replace (almost) all other
rotation macros.
2012-03-30 Niels Möller <nisse@lysator.liu.se>
* nettle-internal.c (nettle_salsa20): Cipher struct for
...
...
macros.h
View file @
f13fd113
...
...
@@ -119,6 +119,8 @@ do { \
(dst) += (blocksize), \
(src) += (blocksize)) )
#define ROTL32(n,x) ((((x))<<(n)) | (((x))>>(32-(n))))
/* Requires that size >= 2 */
#define INCREMENT(size, ctr) \
do { \
...
...
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