]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add an internal constant-time comparison function
authorGreg Hudson <ghudson@mit.edu>
Wed, 2 Oct 2013 21:55:28 +0000 (17:55 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 3 Oct 2013 19:26:00 +0000 (15:26 -0400)
commitac7d07c2cc54e9f07fe81ac4c50bcc80ecc7ac54
treeeb51159681efd2ebf90a5f304a6c5ffdec1da65b
parent5d03cb6b235f0ee0e30b34630f95f208d6acd3d0
Add an internal constant-time comparison function

k5_bcmp acts similarly to the deprecated Unix bcmp() function,
returning zero if two memory regions are equal and nonzero if they are
not.  It is implemented such that it should take the same amount of
time regardless of how many bytes are equal within the memory regions.
src/include/k5-platform.h
src/util/support/Makefile.in
src/util/support/bcmp.c [new file with mode: 0644]
src/util/support/libkrb5support-fixed.exports