OFFIS DCMTK  Version 3.6.0
sidsa.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: Marco Eichelberg
17  *
18  * Purpose:
19  * classes: SiDSA
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 SIDSA_H
31 #define SIDSA_H
32 
33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmsign/sialgo.h"
35 
36 #ifdef WITH_OPENSSL
37 
38 #include "dcmtk/ofstd/oftypes.h"
39 
40 class SiPrivateKey;
41 struct dsa_st;
42 typedef struct dsa_st DSA;
43 
49 class SiDSA : public SiAlgorithm
50 {
51 public:
52 
56  SiDSA(DSA *key);
57 
59  virtual ~SiDSA();
60 
69  virtual OFCondition sign(
70  const unsigned char *inputHash,
71  unsigned long inputHashSize,
72  E_MACType inputHashAlgorithm,
73  unsigned char *outputSignature,
74  unsigned long &outputSignatureSize);
75 
85  virtual OFCondition verify(
86  const unsigned char *inputHash,
87  unsigned long inputHashSize,
88  E_MACType inputHashAlgorithm,
89  const unsigned char *inputSignature,
90  unsigned long inputSignatureSize,
91  OFBool &verified);
92 
100  virtual unsigned long getSize() const;
101 
105  virtual E_KeyType keyType() const;
106 
107 private:
108 
110  SiDSA(SiDSA& arg);
111 
113  SiDSA& operator=(SiDSA& arg);
114 
116  DSA *dsa;
117 
118 };
119 
120 #endif
121 #endif
122 
123 /*
124  * $Log: sidsa.h,v $
125  * Revision 1.6 2010-10-14 13:17:25 joergr
126  * Updated copyright header. Added reference to COPYRIGHT file.
127  *
128  * Revision 1.5 2005-12-08 16:04:36 meichel
129  * Changed include path schema for all DCMTK header files
130  *
131  * Revision 1.4 2003/06/04 14:21:03 meichel
132  * Simplified include structure to avoid preprocessor limitation
133  * (max 32 #if levels) on MSVC5 with STL.
134  *
135  * Revision 1.3 2001/09/26 14:30:20 meichel
136  * Adapted dcmsign to class OFCondition
137  *
138  * Revision 1.2 2001/06/01 15:50:48 meichel
139  * Updated copyright header
140  *
141  * Revision 1.1 2000/11/07 16:48:54 meichel
142  * Initial release of dcmsign module for DICOM Digital Signatures
143  *
144  *
145  */
146 


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