protected:
GKey(){}
public:
- virtual RawBuffer getBinary() {
- Throw(Exception::OperationNotSupported);
+ virtual RawBuffer getBinary() const {
+ ThrowErr(Exc::Crypto::OperationNotSupported);
}
virtual RawBuffer encrypt(const CryptoAlgorithm &, const RawBuffer &) {
- Throw(Exception::OperationNotSupported);
+ ThrowErr(Exc::Crypto::OperationNotSupported);
}
virtual RawBuffer decrypt(const CryptoAlgorithm &, const RawBuffer &) {
- Throw(Exception::OperationNotSupported);
+ ThrowErr(Exc::Crypto::OperationNotSupported);
}
virtual RawBuffer sign(const CryptoAlgorithm &, const RawBuffer &) {
- Throw(Exception::OperationNotSupported);
+ ThrowErr(Exc::Crypto::OperationNotSupported);
}
virtual int verify(const CryptoAlgorithm &, const RawBuffer &, const RawBuffer &) {
- Throw(Exception::OperationNotSupported);
+ ThrowErr(Exc::Crypto::OperationNotSupported);
}
virtual ~GKey () {}
};
+typedef std::unique_ptr<GKey> GKeyUPtr;
typedef std::shared_ptr<GKey> GKeyShPtr;
} // namespace Crypto