gdcmSHA1.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __gdcmSHA1_h
00016 #define __gdcmSHA1_h
00017
00018 #include "gdcmTypes.h"
00019
00020 namespace gdcm
00021 {
00022
00023 class SHA1Internals;
00033 class GDCM_EXPORT SHA1
00034 {
00035 public :
00036 SHA1();
00037 ~SHA1();
00038
00039 static bool Compute(const char *buffer, unsigned long buf_len, char digest_str[20*2+1]);
00040
00041 static bool ComputeFile(const char *filename, char digest_str[20*2+1]);
00042
00043 private:
00044 SHA1Internals *Internals;
00045 private:
00046 SHA1(const SHA1&);
00047 void operator=(const SHA1&);
00048 };
00049 }
00050
00051 #endif //__gdcmSHA1_h