Go to the documentation of this file.
66 #if defined(NO_SHA) || (defined(NO_SHA0) && defined(NO_SHA1))
67 #error SHA is disabled.
77 #if defined(WIN16) || defined(__LP32__)
78 #define SHA_LONG unsigned long
79 #elif defined(_CRAY) || defined(__ILP64__)
80 #define SHA_LONG unsigned long
81 #define SHA_LONG_LOG2 3
83 #define SHA_LONG unsigned int
87 #define SHA_CBLOCK (SHA_LBLOCK*4)
90 #define SHA_LAST_BLOCK (SHA_CBLOCK-8)
91 #define SHA_DIGEST_LENGTH 20
105 unsigned char *
SHA(
const unsigned char *d,
unsigned long n,
unsigned char *md);
112 unsigned char *
SHA1(
const unsigned char *d,
unsigned long n,
unsigned char *md);