From 10a42c1e04655675661274c26456692f7d6725c6 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 23 Sep 2019 17:58:27 +0200 Subject: [PATCH] keys: don't fudge authentication delay Remove the magic constant compensating for copying, conversions, etc. It cannot possibly be accurate on all hardware. The delay is supposed to be a minimum delay. --- keys.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/keys.c b/keys.c index 7eb5cb3..44a3f7a 100644 --- a/keys.c +++ b/keys.c @@ -121,8 +121,7 @@ determine_hash_delay(uint32_t key_id) min_diff = diff; } - /* Add on a bit extra to allow for copying, conversions etc */ - nsecs = 1.0625e9 * min_diff; + nsecs = 1.0e9 * min_diff; DEBUG_LOG("authentication delay for key %"PRIu32": %d nsecs", key_id, nsecs);