diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-01-20 14:03:51 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2024-04-13 22:02:13 +0200 |
commit | c11ccdfad1596199713f75a61f34672f7529ab73 (patch) | |
tree | e61136b16d2db9902f8373c2adfda101b9ea27ed /modules | |
parent | 9438e084e2b318bf91c3912c0b8ff056e1835486 (diff) | |
download | pam-c11ccdfad1596199713f75a61f34672f7529ab73.tar.gz pam-c11ccdfad1596199713f75a61f34672f7529ab73.tar.bz2 pam-c11ccdfad1596199713f75a61f34672f7529ab73.zip |
libpam: add helper to compare strings in constant time
Add a helper function to compare two strings for equality, that performs
the same amount of operations based on the first argument, regardless of
the length of the second argument, or the position of the first
difference.
This can be used as defense-in-depth mitigation against timing attacks
of password comparisons.
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions