33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmsign/simac.h"
35 #include "dcmtk/dcmsign/sitypes.h"
40 typedef struct MD5state_st MD5_CTX;
78 virtual unsigned long getSize()
const;
83 virtual E_MACType
macType()
const;
virtual OFCondition initialize()
initializes the MAC algorithm.
SiMD5 & operator=(SiMD5 &arg)
private undefined copy assignment operator
a class implementing the hash function MD5
virtual E_MACType macType() const
returns the type of MAC algorithm computed by this object
SiMD5()
default constructor
virtual const char * getDefinedTerm() const
returns the DICOM identifier for this MAC algorithm
virtual OFCondition digest(const unsigned char *data, unsigned long length)
feeds data into the MAC algorithm
MD5_CTX * ctx
OpenSSL MD5 context.
virtual OFCondition finalize(unsigned char *result)
finalizes the MAC and writes it to the given output array, which must be at least getSize() bytes lar...
virtual unsigned long getSize() const
returns the size of a MAC in bytes.
virtual ~SiMD5()
destructor
a base class for all classes that implement hash functions.
General purpose class for condition codes.