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:
parent
4a219ecbf1
commit
10a42c1e04
1 changed files with 1 additions and 2 deletions
3
keys.c
3
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue