fileformat/DataTypes/RsaPublicKey.h
Go to the documentation of this file.
00001 #ifndef RSAPUBLICKEY_H
00002 #define RSAPUBLICKEY_H
00003 #include "config.h"
00004 
00005 #ifdef HAVE_CRYPTO
00006 
00007 #include "RawRsaPublicKey.h"
00008 #include "RawData.h"
00009 
00010 class RsaPublicKey : public RawRsaPublicKey {
00011         Q_DECLARE_TR_FUNCTIONS(RsaPublicKey)
00012 public:
00013         RsaPublicKey(const DataPointer& start);
00014         QByteArray perform(const RawData& input) const;
00015 };
00016 
00017 #else
00018 
00019 #include "RawData.h"
00020 class RsaPublicKey : public DataType {
00021 public:
00022         RsaPublicKey(const DataPointer& start) : DataType(start) {}
00023         int size() const { return 128+8; }
00024         QString className() const { return "RsaPublicKey"; }
00025         void printOn(Reporter& report) const{
00026         }
00027 };
00028 
00029 #endif
00030 
00031 #endif