Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcus Hoffmann
nettle
Commits
109ccc49
Commit
109ccc49
authored
Jan 09, 2002
by
Niels Möller
Browse files
Removed calls of sha256_final and and some calls of
sha256_init. Rev: src/nettle/yarrow256.c:1.15
parent
e7e8a7c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
yarrow256.c
View file @
109ccc49
...
...
@@ -162,7 +162,6 @@ yarrow_iterate(uint8_t *digest)
sha256_update
(
&
hash
,
sizeof
(
v0
),
v0
);
sha256_update
(
&
hash
,
sizeof
(
count
),
count
);
sha256_final
(
&
hash
);
sha256_digest
(
&
hash
,
SHA256_DIGEST_SIZE
,
digest
);
}
}
...
...
@@ -191,9 +190,7 @@ yarrow_fast_reseed(struct yarrow256_ctx *ctx)
sha256_update
(
&
ctx
->
pools
[
YARROW_FAST
],
sizeof
(
blocks
),
blocks
);
}
sha256_final
(
&
ctx
->
pools
[
YARROW_FAST
]);
sha256_digest
(
&
ctx
->
pools
[
YARROW_FAST
],
sizeof
(
digest
),
digest
);
sha256_init
(
&
ctx
->
pools
[
YARROW_FAST
]);
/* Iterate */
yarrow_iterate
(
digest
);
...
...
@@ -228,9 +225,7 @@ yarrow_slow_reseed(struct yarrow256_ctx *ctx)
/* Get digest of the slow pool*/
sha256_final
(
&
ctx
->
pools
[
YARROW_SLOW
]);
sha256_digest
(
&
ctx
->
pools
[
YARROW_SLOW
],
sizeof
(
digest
),
digest
);
sha256_init
(
&
ctx
->
pools
[
YARROW_SLOW
]);
/* Feed it into the fast pool */
sha256_update
(
&
ctx
->
pools
[
YARROW_FAST
],
sizeof
(
digest
),
digest
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment