OFFIS DCMTK  Version 3.6.0
simac.h
1 /*
2  *
3  * Copyright (C) 1998-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmsign
15  *
16  * Author: Norbert Loxen, Marco Eichelberg
17  *
18  * Purpose:
19  * classes: SiMAC
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:17:25 $
23  * CVS/RCS Revision: $Revision: 1.6 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef SIMAC_H
31 #define SIMAC_H
32 
33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmsign/sitypes.h"
35 
36 #ifdef WITH_OPENSSL
37 
41 class SiMAC
42 {
43 public:
44 
46  SiMAC() { }
47 
49  virtual ~SiMAC() { }
50 
54  virtual OFCondition initialize() = 0;
55 
61  virtual OFCondition digest(const unsigned char *data, unsigned long length) = 0;
62 
70  virtual OFCondition finalize(unsigned char *result) = 0;
71 
75  virtual unsigned long getSize() const = 0;
76 
80  virtual E_MACType macType() const = 0;
81 
85  virtual const char *getDefinedTerm() const = 0;
86 
87 };
88 
89 #endif
90 #endif
91 
92 /*
93  * $Log: simac.h,v $
94  * Revision 1.6 2010-10-14 13:17:25 joergr
95  * Updated copyright header. Added reference to COPYRIGHT file.
96  *
97  * Revision 1.5 2005-12-08 16:04:37 meichel
98  * Changed include path schema for all DCMTK header files
99  *
100  * Revision 1.4 2003/06/04 14:21:03 meichel
101  * Simplified include structure to avoid preprocessor limitation
102  * (max 32 #if levels) on MSVC5 with STL.
103  *
104  * Revision 1.3 2001/09/26 14:30:20 meichel
105  * Adapted dcmsign to class OFCondition
106  *
107  * Revision 1.2 2001/06/01 15:50:49 meichel
108  * Updated copyright header
109  *
110  * Revision 1.1 2000/11/07 16:48:55 meichel
111  * Initial release of dcmsign module for DICOM Digital Signatures
112  *
113  *
114  */
115 


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2