Inheritance diagram for SiSHA1:
Public Member Functions | |
SiSHA1 () | |
default constructor | |
virtual | ~SiSHA1 () |
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 | |
Private Member Functions | |
SiSHA1 (SiSHA1 &arg) | |
private undefined copy constructor | |
SiSHA1 & | operator= (SiSHA1 &arg) |
private undefined copy assignment operator | |
Private Attributes | |
SHA_CTX * | ctx |
OpenSSL SHA1 context. |
Definition at line 45 of file sisha1.h.
virtual OFCondition SiSHA1::initialize | ( | ) | [virtual] |
virtual OFCondition SiSHA1::digest | ( | const unsigned char * | data, | |
unsigned long | length | |||
) | [virtual] |
feeds data into the MAC algorithm
data | pointer to raw data to be fed into the MAC, must not be NULL | |
length | number of bytes in raw data array |
Implements SiMAC.
virtual OFCondition SiSHA1::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().
result | pointer to array of getSize() bytes into which the MAC is written |
Implements SiMAC.
virtual unsigned long SiSHA1::getSize | ( | ) | const [virtual] |
virtual E_MACType SiSHA1::macType | ( | ) | const [virtual] |
returns the type of MAC algorithm computed by this object
Implements SiMAC.
virtual const char* SiSHA1::getDefinedTerm | ( | ) | const [virtual] |
returns the DICOM identifier for this MAC algorithm
Implements SiMAC.