1 /******************************************************************
2 * Copyright 2017 - 2020 Samsung Electronics All Rights Reserved.
4 * Author: Jaroslaw Pelczar <j.pelczar@samsung.com>
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 ******************************************************************/
20 #ifndef DUMMY_BACKEND_DUMMY_BACKEND_H_
21 #define DUMMY_BACKEND_DUMMY_BACKEND_H_
25 #include <device-certificate-manager-backend/dcm-backend-api.h>
29 dummy_backend(const std::string& keyType);
32 int request_certificate_chain(std::string& mutable_chain);
34 int sign_data(MessageDigestType digestType,
35 const std::string& dataToSign, std::string& digestResult);
37 CryptoKeyType key_type();
39 unsigned int key_length();
45 #endif /* DUMMY_BACKEND_DUMMY_BACKEND_H_ */