search for: ms_to_timespec

Displaying 1 result from an estimated 1 matches for "ms_to_timespec".

Did you mean: ns_to_timespec
2023 Sep 07
1
Privacy improving suggestions for ObscureKeystrokeTiming
...Performs keystroke timing obfuscation. Returns non-zero if the * output fd should be polled. @@ -586,8 +616,9 @@ obfuscate_keystroke_timing(struct ssh *ssh, struct timespec *timeout, options.obscure_keystroke_timing_interval); just_started = had_keystroke = active = 1; nchaff = 0; - ms_to_timespec(&tmp, options.obscure_keystroke_timing_interval); - timespecadd(&now, &tmp, &next_interval); + set_next_interval(&now, &next_interval, + options.obscure_keystroke_timing_interval, + SSH_KEYSTROKE_TIMING_FUZZ); } /* Don't hold off if obfuscation inactive...