GDCM: gdcmSHA1.h Source File

GDCM 3.2.7

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;
32 class GDCM_EXPORT SHA1
33{
34public :
35 SHA1();
36 ~SHA1();
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
gdcm::SHA1::SHA1
SHA1()
gdcm::SHA1::Compute
static bool Compute(const char *buffer, unsigned long buf_len, char digest_str[20 *2+1])
gdcm::SHA1::SHA1
SHA1(const SHA1 &)=delete
gdcm::SHA1::~SHA1
~SHA1()
gdcm::SHA1::operator=
void operator=(const SHA1 &)=delete
gdcm::SHA1::ComputeFile
static bool ComputeFile(const char *filename, char digest_str[20 *2+1])
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21