* @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 {
: 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