X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanager%2Fcrypto%2Fgeneric-backend%2Fgkey.h;h=b06926d9bef8f1aa58ebaeb3d3eaebf5313fc13c;hb=85841ebd72c1b00be105d078d3c6b79d4bfe9cfb;hp=8ad6eda35216dab54c00e3772eaaa17c12d3bd41;hpb=68ef1034badf1554b572989f42bf0d9dbd53d95f;p=platform%2Fcore%2Fsecurity%2Fkey-manager.git diff --git a/src/manager/crypto/generic-backend/gkey.h b/src/manager/crypto/generic-backend/gkey.h index 8ad6eda..b06926d 100644 --- a/src/manager/crypto/generic-backend/gkey.h +++ b/src/manager/crypto/generic-backend/gkey.h @@ -33,29 +33,30 @@ class GKey { 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 GKeyUPtr; typedef std::shared_ptr GKeyShPtr; } // namespace Crypto