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 SIRSA_H
00031 #define SIRSA_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 rsa_st;
00042 typedef struct rsa_st RSA;
00043
00049 class SiRSA : public SiAlgorithm
00050 {
00051 public:
00052
00056 SiRSA(RSA *key);
00057
00059 virtual ~SiRSA();
00060
00070 virtual OFCondition sign(
00071 const unsigned char *inputHash,
00072 unsigned long inputHashSize,
00073 E_MACType inputHashAlgorithm,
00074 unsigned char *outputSignature,
00075 unsigned long &outputSignatureSize);
00076
00087 virtual OFCondition verify(
00088 const unsigned char *inputHash,
00089 unsigned long inputHashSize,
00090 E_MACType inputHashAlgorithm,
00091 const unsigned char *inputSignature,
00092 unsigned long inputSignatureSize,
00093 OFBool &verified);
00094
00102 virtual unsigned long getSize() const;
00103
00107 virtual E_KeyType keyType() const;
00108
00109 private:
00110
00112 SiRSA(SiRSA& arg);
00113
00115 SiRSA& operator=(SiRSA& arg);
00116
00118 RSA *rsa;
00119
00120 };
00121
00122 #endif
00123 #endif
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148