You've already forked opencryptoki
mirror of
https://github.com/opencryptoki/opencryptoki.git
synced 2026-10-24 05:39:17 +03:00
When statistic counters would overflow, keep them at the maximum possible value. Wrapping to zero is the worst possible outcome for an auditing tool, it silently under-reports activity. If a counter saturated, then the pkcsstatd display indicates this with "[saturated]" instead of the counter value. While at it also make the reset operation to operate in an per counter atomic way. Otherwise counter increments might get lost while a reset is performed. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>