Commit 40dd5fc9 authored by Niels Möller's avatar Niels Möller

(yarrow_key_event_estimate): Fixed handling

of timing info.

Rev: src/nettle/yarrow_key_event.c:1.3
parent 3e7a480a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment