E2EE: Adaptation layer API
[platform/core/test/security-tests.git] / src / e2ee-adaptation-layer / e2ee-adaptation-layer.cpp
1 /*
2  * Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License
15  */
16
17 #include "e2ee-adaptation-layer.h"
18
19 int ckmew_key_agreement(const char * /*private_key_alias*/,
20                         const unsigned char * /*raw_public_key*/,
21                         size_t /*raw_public_key_len*/,
22                         const char * /*new_key_alias*/)
23 {
24     // TODO
25     return CKMC_ERROR_NONE;
26 }
27
28 int ckmew_key_derive_pbkdf2(const char * /*password*/,
29                             const unsigned char * /*salt*/,
30                             size_t /*salt_len*/,
31                             size_t /*new_key_len*/,
32                             const char * /*new_key_alias*/)
33 {
34     // TODO
35     return CKMC_ERROR_NONE;
36 }
37
38 int ckmew_get_ocf_cert_chain(char ** /*cert_chain*/, size_t * /*cert_chain_len*/)
39 {
40     // TODO
41     return DCM_ERROR_NONE;
42 }
43
44 int ckmew_sign_with_ocf(const char * /*public_key_alias*/,
45                         ckmc_raw_buffer_s** /*message_buf*/,
46                         ckmc_raw_buffer_s** /*signature_buf*/)
47 {
48     // TODO
49     return DCM_ERROR_NONE;
50 }