Skip to content
Snippets Groups Projects
Commit 40dd5fc9 authored by Niels Möller's avatar 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
No related branches found
No related tags found
No related merge requests found
...@@ -44,9 +44,9 @@ yarrow_key_event_estimate(struct yarrow_key_event_ctx *ctx, ...@@ -44,9 +44,9 @@ yarrow_key_event_estimate(struct yarrow_key_event_ctx *ctx,
unsigned i; unsigned i;
/* Look at timing first. */ /* Look at timing first. */
if (ctx->previous) if (ctx->previous && (time > ctx->previous) )
{ {
if ( (time - ctx->previous) < 256) if ( (time - ctx->previous) >= 256)
entropy++; entropy++;
} }
ctx->previous = time; ctx->previous = time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment