Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _SHA_H
00009 #define _SHA_H
00010
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014
00015 #include<stdint.h>
00016
00017 #define SHA1CircularShift(bits,word) \
00018 (((word) << (bits)) | ((word) >> (32-(bits))))
00019
00020 enum {
00021 shSuccess = 0,
00022 shNull
00023 };
00024
00025 uint8_t SHA1Block(uint8_t object_type, uint8_t object_copy, uint8_t level,
00026 uint32_t seed, uint32_t object_id, uint8_t *Message_Block);
00027
00028 uint8_t SHA1(uint8_t *Message_Block, uint64_t *Result);
00029
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033
00034 #endif
00035