gdcmMD5.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMMD5_H
#define GDCMMD5_H
#include "gdcmTypes.h"
namespace gdcm
{
//-----------------------------------------------------------------------------
class GDCM_EXPORT MD5
{
public :
// Compute md5 from memory pointed by `pointer` of size `buf_len`
static bool Compute(const char *buffer, size_t buf_len, char digest_str[33]);
static bool ComputeFile(const char *filename, char digest_str[33]);
};
} // end namespace gdcm
//-----------------------------------------------------------------------------
#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