home *** CD-ROM | disk | FTP | other *** search
/ nisttime.carsoncity.k12.mi.us / nisttime.carsoncity.k12.mi.us.tar / nisttime.carsoncity.k12.mi.us / pub / sha / f0.c < prev    next >
C/C++ Source or Header  |  2001-06-29  |  181b  |  10 lines

  1. #include "sizint.h"
  2. LONG f0(ULONG x, ULONG y, ULONG z)
  3. {
  4. /*
  5.     implements the function used for the first
  6.     20 rounds of the sha, FIPS 180, page 8
  7. */
  8.     return( (x & y) | ( ~x & z) );
  9. }
  10.