GDCM: gdcmMD5.h Source File

GDCM 3.2.8

gdcmMD5.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 GDCMMD5_H
15#define GDCMMD5_H
16
17#include "gdcmTypes.h"
18
19namespace gdcm
20{
21//-----------------------------------------------------------------------------
32 class GDCM_EXPORT MD5
33{
34public :
35 // Compute md5 from memory pointed by `pointer` of size `buf_len`
36 static bool Compute(const char *buffer, size_t buf_len, char digest_str[33]);
37
39 static bool ComputeFile(const char *filename, char digest_str[33]);
40};
41} // end namespace gdcm
42//-----------------------------------------------------------------------------
43#endif //GDCMMD5_H
gdcm::MD5
Class for MD5.
Definition gdcmMD5.h:33
gdcm::MD5::ComputeFile
static bool ComputeFile(const char *filename, char digest_str[33])
Compute md5 from a file filename.
gdcm::MD5::Compute
static bool Compute(const char *buffer, size_t buf_len, char digest_str[33])
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21