1526fd984Sopenharmony_ci/*
2526fd984Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
3526fd984Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4526fd984Sopenharmony_ci * you may not use this file except in compliance with the License.
5526fd984Sopenharmony_ci * You may obtain a copy of the License at
6526fd984Sopenharmony_ci *
7526fd984Sopenharmony_ci *    http://www.apache.org/licenses/LICENSE-2.0
8526fd984Sopenharmony_ci *
9526fd984Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10526fd984Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11526fd984Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12526fd984Sopenharmony_ci * See the License for the specific language governing permissions and
13526fd984Sopenharmony_ci * limitations under the License.
14526fd984Sopenharmony_ci */
15526fd984Sopenharmony_ci
16526fd984Sopenharmony_ci#ifndef HKS_CLIENT_SERVICE_ADAPTER_H
17526fd984Sopenharmony_ci#define HKS_CLIENT_SERVICE_ADAPTER_H
18526fd984Sopenharmony_ci
19526fd984Sopenharmony_ci#include <stdint.h>
20526fd984Sopenharmony_ci
21526fd984Sopenharmony_ci#include "hks_type.h"
22526fd984Sopenharmony_ci
23526fd984Sopenharmony_ci#ifdef __cplusplus
24526fd984Sopenharmony_ciextern "C" {
25526fd984Sopenharmony_ci#endif
26526fd984Sopenharmony_ci
27526fd984Sopenharmony_ciint32_t TranslateToX509PublicKey(const struct HksBlob *publicKey, struct HksBlob *x509Key);
28526fd984Sopenharmony_ci
29526fd984Sopenharmony_ciint32_t TranslateFromX509PublicKey(const uint32_t alg, const struct HksBlob *x509Key, struct HksBlob *publicKey);
30526fd984Sopenharmony_ci
31526fd984Sopenharmony_ci#ifdef __cplusplus
32526fd984Sopenharmony_ci}
33526fd984Sopenharmony_ci#endif
34526fd984Sopenharmony_ci
35526fd984Sopenharmony_ci#endif /* HKS_CLIENT_SERVICE_ADAPTER_H */