Remove KSE backend
[platform/core/security/device-certificate-manager-backend.git] / src / dummy-backend / dummy_backend.h
1 /******************************************************************
2  * Copyright 2017 - 2020 Samsung Electronics All Rights Reserved.
3  *
4  * Author: Jaroslaw Pelczar <j.pelczar@samsung.com>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  ******************************************************************/
19
20 #ifndef DUMMY_BACKEND_DUMMY_BACKEND_H_
21 #define DUMMY_BACKEND_DUMMY_BACKEND_H_
22
23 #include <string>
24
25 #include <device-certificate-manager-backend/dcm-backend-api.h>
26
27 class dummy_backend {
28 public:
29         dummy_backend(const std::string& keyType);
30         ~dummy_backend();
31
32         int request_certificate_chain(std::string& mutable_chain);
33
34         int sign_data(MessageDigestType digestType,
35                 const std::string& dataToSign, std::string& digestResult);
36
37         CryptoKeyType key_type();
38
39         unsigned int key_length();
40
41 private:
42         CryptoKeyType   fKey;
43 };
44
45 #endif /* DUMMY_BACKEND_DUMMY_BACKEND_H_ */