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.
This commit is contained in:
Miroslav Lichvar 2019-09-23 17:58:27 +02:00
parent 4a219ecbf1
commit 10a42c1e04

3
keys.c
View file

@ -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);