33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmsign/sitypes.h" 38 #include "dcmtk/dcmdata/dcostrmb.h" 39 #include "dcmtk/dcmdata/dcxfer.h" 40 #include "dcmtk/dcmdata/dcdeftag.h" 42 #define INCLUDE_CSTDIO 43 #include "dcmtk/ofstd/ofstdinc.h" 89 E_TransferSyntax oxfer,
110 E_TransferSyntax oxfer);
a class representing a list of DICOM elements in which each element has a different tag and elements ...
abstract base class for all DICOM elements
a class that allows to feed selected parts of a DICOM dataset into the MAC generation code ...
virtual ~SiMACConstructor()
destructor
OFCondition encodeElement(DcmElement *element, SiMAC &mac, E_TransferSyntax oxfer)
feeds a DcmElement into the MAC data stream if is signable.
output stream that writes into a buffer of fixed length which must be provided by the caller...
FILE * dumpFile
if nonzero, the data fed to the MAC algorithm is also stored in this file.
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 si...
OFCondition flush(SiMAC &mac)
flushes all buffers inside this object, finalizing the MAC code
SiMACConstructor & operator=(SiMACConstructor &arg)
private undefined copy assignment operator
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...
void setDumpFile(FILE *f)
dump all data that is fed into the MAC algorithm into the given file, which must be opened and closed...
unsigned char * buf
the buffer to which data is written
a base class for all classes that implement hash functions.
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 flushBuffer(SiMAC &mac)
flushes the internal buffer to the given MAC and to dumpFile if open
SiMACConstructor()
constructor
DcmOutputBufferStream stream
the internal buffer stream
General purpose class for condition codes.
a class representing the DICOM value representation 'Attribute Tag' (AT)