OFFIS DCMTK  Version 3.6.0
sialgo.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: SiAlgorithm
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:17:24 $
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 SIALGO_H
31 #define SIALGO_H
32 
33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmsign/sitypes.h"
35 
36 #ifdef WITH_OPENSSL
37 
38 #include "dcmtk/ofstd/oftypes.h"
39 
47 {
48 public:
49 
52 
54  virtual ~SiAlgorithm() { }
55 
65  virtual OFCondition sign(
66  const unsigned char *inputHash,
67  unsigned long inputHashSize,
68  E_MACType inputHashAlgorithm,
69  unsigned char *outputSignature,
70  unsigned long &outputSignatureSize) = 0;
71 
82  virtual OFCondition verify(
83  const unsigned char *inputHash,
84  unsigned long inputHashSize,
85  E_MACType inputHashAlgorithm,
86  const unsigned char *inputSignature,
87  unsigned long inputSignatureSize,
88  OFBool &verified) = 0;
89 
97  virtual unsigned long getSize() const = 0;
98 
102  virtual E_KeyType keyType() const = 0;
103 
104 };
105 
106 #endif
107 #endif
108 
109 /*
110  * $Log: sialgo.h,v $
111  * Revision 1.6 2010-10-14 13:17:24 joergr
112  * Updated copyright header. Added reference to COPYRIGHT file.
113  *
114  * Revision 1.5 2005-12-08 16:04:30 meichel
115  * Changed include path schema for all DCMTK header files
116  *
117  * Revision 1.4 2003/06/04 14:21:03 meichel
118  * Simplified include structure to avoid preprocessor limitation
119  * (max 32 #if levels) on MSVC5 with STL.
120  *
121  * Revision 1.3 2001/09/26 14:30:19 meichel
122  * Adapted dcmsign to class OFCondition
123  *
124  * Revision 1.2 2001/06/01 15:50:47 meichel
125  * Updated copyright header
126  *
127  * Revision 1.1 2000/11/07 16:48:52 meichel
128  * Initial release of dcmsign module for DICOM Digital Signatures
129  *
130  *
131  */
132 


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