a class implementing the hash function MD5
More...
|
| SiMD5 () |
| default constructor
|
|
virtual | ~SiMD5 () |
| destructor
|
|
virtual OFCondition | initialize () |
| initializes the MAC algorithm.
|
|
virtual OFCondition | digest (const unsigned char *data, unsigned long length) |
| feeds data into the MAC algorithm
|
|
virtual OFCondition | finalize (unsigned char *result) |
| finalizes the MAC and writes it to the given output array, which must be at least getSize() bytes large.
|
|
virtual unsigned long | getSize () const |
| returns the size of a MAC in bytes.
|
|
virtual E_MACType | macType () const |
| returns the type of MAC algorithm computed by this object
|
|
virtual const char * | getDefinedTerm () const |
| returns the DICOM identifier for this MAC algorithm
|
|
| SiMAC () |
| default constructor
|
|
virtual | ~SiMAC () |
| destructor
|
|
|
MD5_CTX * | ctx |
| OpenSSL MD5 context.
|
|
a class implementing the hash function MD5
Definition at line 45 of file simd5.h.
virtual OFCondition SiMD5::digest |
( |
const unsigned char * |
data, |
|
|
unsigned long |
length |
|
) |
| |
|
virtual |
feeds data into the MAC algorithm
- Parameters
-
data | pointer to raw data to be fed into the MAC, must not be NULL |
length | number of bytes in raw data array |
- Returns
- status code
Implements SiMAC.
virtual OFCondition SiMD5::finalize |
( |
unsigned char * |
result | ) |
|
|
virtual |
finalizes the MAC and writes it to the given output array, which must be at least getSize() bytes large.
After a call to finalize, the MAC algorithm must be initialized again, see initialize().
- Parameters
-
result | pointer to array of getSize() bytes into which the MAC is written |
- Returns
- status code
Implements SiMAC.
virtual const char* SiMD5::getDefinedTerm |
( |
| ) |
const |
|
virtual |
returns the DICOM identifier for this MAC algorithm
- Returns
- DICOM defined term for algorithm
Implements SiMAC.
virtual unsigned long SiMD5::getSize |
( |
| ) |
const |
|
virtual |
returns the size of a MAC in bytes.
- Returns
- block size for this MAC algorithm
Implements SiMAC.
initializes the MAC algorithm.
- Returns
- status code
Implements SiMAC.
virtual E_MACType SiMD5::macType |
( |
| ) |
const |
|
virtual |
returns the type of MAC algorithm computed by this object
- Returns
- type of MAC algorithm
Implements SiMAC.
The documentation for this class was generated from the following file:
- dcmsign/include/dcmtk/dcmsign/simd5.h