GDCM 3.0.24
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//-----------------------------------------------------------------------------
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
Class for MD5.
Definition gdcmMD5.h:33
static bool ComputeFile(const char *filename, char digest_str[33])
Compute md5 from a file filename
static bool Compute(const char *buffer, size_t buf_len, char digest_str[33])
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21