Public Member Functions | |
| SiMACConstructor () | |
| constructor | |
| virtual | ~SiMACConstructor () |
| destructor | |
| OFCondition | encodeDataset (DcmItem &item, SiMAC &mac, E_TransferSyntax oxfer, DcmAttributeTag &tagListOut, DcmAttributeTag *tagListIn=NULL) |
| encodes a DICOM dataset (or parts of it) as a byte stream in the format required for DICOM digital signatures and feeds the byte stream into the given MAC codec. | |
| OFCondition | encodeDigitalSignatureItem (DcmItem &signatureItem, SiMAC &mac, E_TransferSyntax oxfer) |
| encodes the contents of the digital signature sequence except CertificateOfSigner, Signature, CertifiedTimestampType and CertifiedTimestamp as a byte stream in the format required for DICOM digital signatures and feeds the byte stream into the given MAC codec. | |
| OFCondition | flush (SiMAC &mac) |
| flushes all buffers inside this object, finalizing the MAC code | |
| void | setDumpFile (FILE *f) |
| dump all data that is fed into the MAC algorithm into the given file, which must be opened and closed by caller. | |
Private Member Functions | |
| SiMACConstructor (SiMACConstructor &arg) | |
| private undefined copy constructor | |
| SiMACConstructor & | operator= (SiMACConstructor &arg) |
| private undefined copy assignment operator | |
| OFCondition | flushBuffer (SiMAC &mac) |
| flushes the internal buffer to the given MAC and to dumpFile if open | |
| OFCondition | encodeElement (DcmElement *element, SiMAC &mac, E_TransferSyntax oxfer) |
| feeds a DcmElement into the MAC data stream if is signable. | |
Static Private Member Functions | |
| static OFBool | inTagList (const DcmElement *element, DcmAttributeTag *tagList) |
| checks whether the attribute tag of the given DcmElement is contained in the given list of tags. | |
Private Attributes | |
| unsigned char * | buf |
| the buffer to which data is written | |
| DcmOutputBufferStream | stream |
| the internal buffer stream | |
| FILE * | dumpFile |
| if nonzero, the data fed to the MAC algorithm is also stored in this file. | |
Definition at line 56 of file simaccon.h.
|
||||||||||||||||||||||||
|
encodes a DICOM dataset (or parts of it) as a byte stream in the format required for DICOM digital signatures and feeds the byte stream into the given MAC codec. If a dump file was set with setDumpFile(), the byte stream is written to file as well.
|
|
||||||||||||||||
|
encodes the contents of the digital signature sequence except CertificateOfSigner, Signature, CertifiedTimestampType and CertifiedTimestamp as a byte stream in the format required for DICOM digital signatures and feeds the byte stream into the given MAC codec. If a dump file was set with setDumpFile(), the byte stream is written to file as well.
|
|
||||||||||||||||
|
feeds a DcmElement into the MAC data stream if is signable. If the element is a sequence, all signable elements from all items are added.
|
|
|
flushes all buffers inside this object, finalizing the MAC code
|
|
|
flushes the internal buffer to the given MAC and to dumpFile if open
|
|
||||||||||||
|
checks whether the attribute tag of the given DcmElement is contained in the given list of tags. If the list is absent (NULL), a universal match is assumed, i.e. always returns true if element is nonzero. Does not check whether an element is signable.
|
|
|
dump all data that is fed into the MAC algorithm into the given file, which must be opened and closed by caller.
|