GDCM
2.0.18
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 00005 Copyright (c) 2006-2011 Mathieu Malaterre 00006 All rights reserved. 00007 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00014 #ifndef GDCMSHA1_H 00015 #define GDCMSHA1_H 00016 00017 #include "gdcmTypes.h" 00018 00019 namespace gdcm 00020 { 00021 //----------------------------------------------------------------------------- 00022 class SHA1Internals; 00032 class GDCM_EXPORT SHA1 00033 { 00034 public : 00035 SHA1(); 00036 ~SHA1(); 00037 00038 static bool Compute(const char *buffer, unsigned long buf_len, char digest_str[20*2+1]); 00039 00040 static bool ComputeFile(const char *filename, char digest_str[20*2+1]); 00041 00042 private: 00043 SHA1Internals *Internals; 00044 private: 00045 SHA1(const SHA1&); // Not implemented. 00046 void operator=(const SHA1&); // Not implemented. 00047 }; 00048 } // end namespace gdcm 00049 //----------------------------------------------------------------------------- 00050 #endif //GDCMSHA1_H