Add support for binary data to GStore
[platform/core/security/key-manager.git] / src / manager / crypto / tz-backend / store.cpp
index 0cf6ffe..fe3fae7 100644 (file)
  * @author     BartÅ‚omiej Grzelewski (b.grzelewski@samsung.com)
  * @version    1.0
  */
-#include <dpl/log/log.h>
-
 #include <generic-backend/exception.h>
-#include <tz-backend/key.h>
+#include <tz-backend/obj.h>
 #include <tz-backend/store.h>
 
 namespace CKM {
@@ -32,14 +30,16 @@ Store::Store(CryptoBackend backendId)
   : GStore(backendId)
 {}
 
-GKeyShPtr Store::getKey(const Token &) {
-    LogError("Trust zone backend is not implemented!");
-    ThrowMsg(Exception::Base, "Trust zone backend is not implemented!");
+GObjUPtr Store::getObject(const Token &) {
+    ThrowErr(Exc::Crypto::OperationNotSupported, "Trust zone backend is not implemented!");
+}
+
+TokenPair Store::generateAKey(const CryptoAlgorithm &) {
+    ThrowErr(Exc::Crypto::OperationNotSupported, "Trust zone backend is not implemented!");
 }
 
 Token Store::import(DataType, const RawBuffer &) {
-    LogError("Trust zone backend is not implemented!");
-    ThrowMsg(Exception::Base, "Trust zone backend is not implemented!");
+    ThrowErr(Exc::Crypto::OperationNotSupported, "Trust zone backend is not implemented!");
 }
 
 } // namespace TZ