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
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
6846fe56
Commit
6846fe56
authored
Apr 09, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New constants for SHA512-224 and SHA512-256.
parent
27ee8ac2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
ChangeLog
ChangeLog
+3
-0
sha2.h
sha2.h
+5
-0
No files found.
ChangeLog
View file @
6846fe56
2014-04-09 Niels Möller <nisse@lysator.liu.se>
* sha2.h (SHA512_224_DIGEST_SIZE, SHA512_224_DATA_SIZE)
(SHA512_256_DIGEST_SIZE, SHA512_256_DATA_SIZE): New constants.
* sha512.c (sha512_256_digest): Typo fix, call sha512_256_init.
* testsuite/testutils.c (test_hash): Removed redundant init call.
...
...
sha2.h
View file @
6846fe56
...
...
@@ -156,6 +156,9 @@ sha384_digest(struct sha512_ctx *ctx,
/* SHA512_224 and SHA512_256, two truncated versions of SHA512
with different initial states. */
#define SHA512_224_DIGEST_SIZE 28
#define SHA512_224_DATA_SIZE SHA512_DATA_SIZE
void
sha512_224_init
(
struct
sha512_ctx
*
ctx
);
...
...
@@ -166,6 +169,8 @@ sha512_224_digest(struct sha512_ctx *ctx,
size_t
length
,
uint8_t
*
digest
);
#define SHA512_256_DIGEST_SIZE 32
#define SHA512_256_DATA_SIZE SHA512_DATA_SIZE
void
sha512_256_init
(
struct
sha512_ctx
*
ctx
);
...
...
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