Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brian Smith
nettle
Commits
8149d146
Commit
8149d146
authored
Nov 12, 2012
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Moved ROTL64 macro to macros.h.
parent
d20990fd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
macros.h
+3
-1
3 additions, 1 deletion
macros.h
sha512-compress.c
+0
-2
0 additions, 2 deletions
sha512-compress.c
with
6 additions
and
3 deletions
ChangeLog
+
3
−
0
View file @
8149d146
2012-11-12 Niels Möller <nisse@lysator.liu.se>
2012-11-12 Niels Möller <nisse@lysator.liu.se>
* macros.h (ROTL64): New macro, moved from...
* sha512-compress.c (ROTL64): ... old location, deleted.
* serpent-internal.h [HAVE_NATIVE_64_BIT] (DROTL32): Renamed from...
* serpent-internal.h [HAVE_NATIVE_64_BIT] (DROTL32): Renamed from...
(ROTL64): ... old name.
(ROTL64): ... old name.
(DRSHIFT32): Renamed from ...
(DRSHIFT32): Renamed from ...
...
...
This diff is collapsed.
Click to expand it.
macros.h
+
3
−
1
View file @
8149d146
...
@@ -119,7 +119,9 @@ do { \
...
@@ -119,7 +119,9 @@ do { \
(dst) += (blocksize), \
(dst) += (blocksize), \
(src) += (blocksize)) )
(src) += (blocksize)) )
#define ROTL32(n,x) ((((x))<<(n)) | (((x))>>(32-(n))))
#define ROTL32(n,x) (((x)<<(n)) | ((x)>>(32-(n))))
#define ROTL64(n,x) (((x)<<(n)) | ((x)>>(64-(n))))
/* Requires that size >= 2 */
/* Requires that size >= 2 */
#define INCREMENT(size, ctr) \
#define INCREMENT(size, ctr) \
...
...
This diff is collapsed.
Click to expand it.
sha512-compress.c
+
0
−
2
View file @
8149d146
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
/* A block, treated as a sequence of 64-bit words. */
/* A block, treated as a sequence of 64-bit words. */
#define SHA512_DATA_LENGTH 16
#define SHA512_DATA_LENGTH 16
#define ROTL64(n,x) ((x)<<(n) | ((x)>>(64-(n))))
/* The SHA512 functions. The Choice function is the same as the SHA1
/* The SHA512 functions. The Choice function is the same as the SHA1
function f1, and the majority function is the same as the SHA1 f3
function f1, and the majority function is the same as the SHA1 f3
function, and the same as for SHA256. */
function, and the same as for SHA256. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment