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
LSH
lsh
Commits
f3cf477f
Commit
f3cf477f
authored
Dec 05, 2001
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(yarrow_key_event_estimate): Fixed handling
of timing info. Rev: src/nettle/yarrow_key_event.c:1.3
parent
27244dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/nettle/yarrow_key_event.c
src/nettle/yarrow_key_event.c
+2
-2
No files found.
src/nettle/yarrow_key_event.c
View file @
f3cf477f
...
...
@@ -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
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