/*
- * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000-2019 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace CKM {
-class EncryptionLogic
-{
+class EncryptionLogic {
public:
- EncryptionLogic(IEncryptionService& service) : m_service(service) {}
- virtual ~EncryptionLogic() {}
+ explicit EncryptionLogic(IEncryptionService &service) : m_service(service) {}
+ virtual ~EncryptionLogic() {}
+
+ void Crypt(const CryptoRequest &request);
+ void KeyRetrieved(MsgKeyResponse response);
- void Crypt(const CryptoRequest& request);
- void KeyRetrieved(MsgKeyResponse response);
private:
- IEncryptionService& m_service;
+ IEncryptionService &m_service;
- std::map<int, CryptoRequest> m_requests;
+ std::map<int, CryptoRequest> m_requestsMap;
};
} /* namespace CKM */