Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wim Lewis
nettle
Commits
8149d146
Commit
8149d146
authored
Nov 12, 2012
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved ROTL64 macro to macros.h.
parent
d20990fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
ChangeLog
ChangeLog
+3
-0
macros.h
macros.h
+3
-1
sha512-compress.c
sha512-compress.c
+0
-2
No files found.
ChangeLog
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 ...
...
...
macros.h
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) \
...
...
sha512-compress.c
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. */
...
...
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