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
40dd5fc9
Commit
40dd5fc9
authored
Dec 05, 2001
by
Niels Möller
Browse files
(yarrow_key_event_estimate): Fixed handling
of timing info. Rev: src/nettle/yarrow_key_event.c:1.3
parent
3e7a480a
Changes
1
Hide whitespace changes
Inline
Side-by-side
yarrow_key_event.c
View file @
40dd5fc9
...
...
@@ -44,9 +44,9 @@ yarrow_key_event_estimate(struct yarrow_key_event_ctx *ctx,
unsigned
i
;
/* Look at timing first. */
if
(
ctx
->
previous
)
if
(
ctx
->
previous
&&
(
time
>
ctx
->
previous
)
)
{
if
(
(
time
-
ctx
->
previous
)
<
256
)
if
(
(
time
-
ctx
->
previous
)
>=
256
)
entropy
++
;
}
ctx
->
previous
=
time
;
...
...
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