implement a timing_safe_cmp() function to compare memory without leaking
authordjm <djm@openbsd.org>
Tue, 13 Jul 2010 11:52:06 +0000 (11:52 +0000)
committerdjm <djm@openbsd.org>
Tue, 13 Jul 2010 11:52:06 +0000 (11:52 +0000)
commit8488487f0974f365bb51defabda91a3e5dcdfaa6
tree6435ebeffbf21ae55995d5adfca159bf99c291b6
parent6fb7479520e6cc52cbd07f5ae2dbf9114e4f8d76
implement a timing_safe_cmp() function to compare memory without leaking
timing information by short-circuiting like memcmp() and use it for
some of the more sensitive comparisons (though nothing high-value was
readily attackable anyway); "looks ok" markus@
usr.bin/ssh/auth-rsa.c
usr.bin/ssh/channels.c
usr.bin/ssh/jpake.c
usr.bin/ssh/key.c
usr.bin/ssh/misc.c
usr.bin/ssh/misc.h
usr.bin/ssh/monitor.c
usr.bin/ssh/packet.c
usr.bin/ssh/ssh-rsa.c