Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. More...
Go to the source code of this file.
Macros | |
#define | K1 0x5a827999 |
#define | K2 0x6ed9eba1 |
#define | K3 0x8f1bbcdc |
#define | K4 0xca62c1d6 |
#define | F1(B, C, D) ( D ^ ( B & ( C ^ D ) ) ) |
#define | F2(B, C, D) (B ^ C ^ D) |
#define | F3(B, C, D) ( ( B & C ) | ( D & ( B | C ) ) ) |
#define | F4(B, C, D) (B ^ C ^ D) |
#define | rol_uint32(x, nbits) (((x) << (nbits)) | ((x) >> (32 - (nbits)))) |
#define | M(I) |
#define | R(A, B, C, D, E, F, K, M) |
Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1.
Original source file SHA1.C
Adapted from the gnulib implementation written by Scott G. Miller with credits to Robert Klep rober – Expansion function fix t@il se.nl
Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
Definition in file SHA1.C.
#define M | ( | I | ) |