• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

SHA.h

Go to the documentation of this file.
00001 /* 
00002  * File:   SHA.h
00003  * Author: fermat
00004  *
00005  * Created on 31. März 2010, 17:50
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 /* Null pointer parameter */
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  /* _SHA_H */
00035 

Generated on Mon Oct 11 2010 13:09:26 for CppDistributors by  doxygen 1.7.2