Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
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