File: slowequals.h

package info (click to toggle)
libscrypt 1.22-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: ansic: 1,565; makefile: 144
file content (5 lines) | stat: -rw-r--r-- 159 bytes parent folder | download | duplicates (3)
1
2
3
4
5

/* Implements a constant time version of strcmp()
 * Will return 1 if a and b are equal, 0 if they are not */
int slow_equals(const char* a, const char* b);