GDCM 3.0.24
gdcmSHA1.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMSHA1_H
15#define GDCMSHA1_H
16
17#include "gdcmTypes.h"
18
19namespace gdcm
20{
21//-----------------------------------------------------------------------------
22class SHA1Internals;
33{
34public :
37 SHA1(const SHA1&) = delete;
38 void operator=(const SHA1&) = delete;
39
40 static bool Compute(const char *buffer, unsigned long buf_len, char digest_str[20*2+1]);
41
42 static bool ComputeFile(const char *filename, char digest_str[20*2+1]);
43
44private:
45 SHA1Internals *Internals;
46};
47} // end namespace gdcm
48//-----------------------------------------------------------------------------
49#endif //GDCMSHA1_H
Class for SHA1.
Definition gdcmSHA1.h:33
static bool Compute(const char *buffer, unsigned long buf_len, char digest_str[20 *2+1])
SHA1(const SHA1 &)=delete
void operator=(const SHA1 &)=delete
static bool ComputeFile(const char *filename, char digest_str[20 *2+1])
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21