#ifndef __SHA1_H__ #define __SHA1_H__ #define ROTL(n,word) \ (((word) << (n)) | ((word) >> (32 - (n)))) #define BUFFER_LENGTH 32768 //#define DEBUG struct sha_struct{ u_int32_t M[16]; u_int32_t count[2]; u_int32_t digest[5]; u_int32_t index; int processed; }; typedef struct sha_struct SHA_CTX; /* deklaracija funkcija */ void merror(char* , int ); void sha1_init(SHA_CTX* ); int count; int sha_1(const char* ); u_int32_t get_block(FILE* ); void sha1_process_block(SHA_CTX* ); void process_block(SHA_CTX* , u_int8_t* , unsigned int ); #endif