BData(RawBuffer buffer, DataType keyType) :
m_raw(std::move(buffer)), m_type(keyType) {}
- virtual RawBuffer getBinary() const
+ RawBuffer getBinary() const override
{
return m_raw;
}
SKey(RawBuffer buffer, DataType keyType) :
BData(std::move(buffer), keyType) {}
- virtual RawBuffer encrypt(const CryptoAlgorithm &, const RawBuffer &);
- virtual RawBuffer decrypt(const CryptoAlgorithm &, const RawBuffer &);
+ RawBuffer encrypt(const CryptoAlgorithm &, const RawBuffer &) override;
+ RawBuffer decrypt(const CryptoAlgorithm &, const RawBuffer &) override;
};
class AKey : public BData {
AKey(RawBuffer buffer, DataType dataType) :
BData(std::move(buffer), dataType) {}
- virtual RawBuffer sign(const CryptoAlgorithm &alg, const RawBuffer &message);
- virtual int verify(const CryptoAlgorithm &alg, const RawBuffer &message,
- const RawBuffer &sign);
- virtual RawBuffer encrypt(const CryptoAlgorithm &, const RawBuffer &);
- virtual RawBuffer decrypt(const CryptoAlgorithm &, const RawBuffer &);
- virtual ~AKey() {}
+ RawBuffer sign(const CryptoAlgorithm &alg, const RawBuffer &message) override;
+ int verify(const CryptoAlgorithm &alg,
+ const RawBuffer &message,
+ const RawBuffer &sign) override;
+ RawBuffer encrypt(const CryptoAlgorithm &, const RawBuffer &) override;
+ RawBuffer decrypt(const CryptoAlgorithm &, const RawBuffer &) override;
protected:
virtual EvpShPtr getEvpShPtr();
Cert(RawBuffer buffer, DataType dataType) :
AKey(std::move(buffer), dataType) {}
- virtual ~Cert() {}
-
protected:
- virtual EvpShPtr getEvpShPtr();
+ EvpShPtr getEvpShPtr() override;
};
} // namespace SW
explicit Store(CryptoBackend backendId);
virtual GObjUPtr getObject(const Token &, const Password &);
- virtual TokenPair generateAKey(const CryptoAlgorithm &,
- const Password &,
- const Password &,
- const RawBuffer &,
- const RawBuffer &);
- virtual Token generateSKey(const CryptoAlgorithm &,
- const Password &,
- const RawBuffer &);
- virtual Token import(const Data &data, const Password &, const EncryptionParams &,
- const RawBuffer &);
- virtual void destroy(const Token &) {}
+ TokenPair generateAKey(const CryptoAlgorithm &,
+ const Password &,
+ const Password &,
+ const RawBuffer &,
+ const RawBuffer &) override;
+ Token generateSKey(const CryptoAlgorithm &,
+ const Password &,
+ const RawBuffer &) override;
+ Token import(const Data &data, const Password &, const EncryptionParams &,
+ const RawBuffer &) override;
+ void destroy(const Token &) override {}
};
} // namespace SW