3 By Steve Reid <steve@edmweb.com>
6 /* Header portion split from main code for convenience (AYB 3/02/98) */
8 #ifndef SHA1_INTERNAL_H
9 #define SHA1_INTERNAL_H
12 Test Vectors (from FIPS PUB 180-1)
14 A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D
15 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
16 84983E44 1C3BD26E BAAE4AA1 F95129E5 E54670F1
17 A million repetitions of "a"
18 34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F
21 /* Context declaration */
25 unsigned char buffer[64];
28 /* Function forward declerations */
29 void SHA1Transform(SilcUInt32 *state, const unsigned char *data);
30 void SHA1Init(SHA1_CTX* context);
31 void SHA1Update(SHA1_CTX* context, unsigned char* data, SilcUInt32 len);
32 void SHA1Final(unsigned char digest[20], SHA1_CTX* context);