00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef SIDSA_H
00031 #define SIDSA_H
00032
00033 #include "dcmtk/config/osconfig.h"
00034 #include "dcmtk/dcmsign/sialgo.h"
00035
00036 #ifdef WITH_OPENSSL
00037
00038 #include "dcmtk/ofstd/oftypes.h"
00039
00040 class SiPrivateKey;
00041 struct dsa_st;
00042 typedef struct dsa_st DSA;
00043
00049 class SiDSA : public SiAlgorithm
00050 {
00051 public:
00052
00056 SiDSA(DSA *key);
00057
00059 virtual ~SiDSA();
00060
00069 virtual OFCondition sign(
00070 const unsigned char *inputHash,
00071 unsigned long inputHashSize,
00072 E_MACType inputHashAlgorithm,
00073 unsigned char *outputSignature,
00074 unsigned long &outputSignatureSize);
00075
00085 virtual OFCondition verify(
00086 const unsigned char *inputHash,
00087 unsigned long inputHashSize,
00088 E_MACType inputHashAlgorithm,
00089 const unsigned char *inputSignature,
00090 unsigned long inputSignatureSize,
00091 OFBool &verified);
00092
00100 virtual unsigned long getSize() const;
00101
00105 virtual E_KeyType keyType() const;
00106
00107 private:
00108
00110 SiDSA(SiDSA& arg);
00111
00113 SiDSA& operator=(SiDSA& arg);
00114
00116 DSA *dsa;
00117
00118 };
00119
00120 #endif
00121 #endif
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146