1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright (c) 2021 Huawei Technologies Co., Ltd
4  */
5 
6 #ifndef _SM2_PKE_H_
7 
8 #include <crypto/crypto.h>
9 #include <stdint.h>
10 #include <tee_api_types.h>
11 
12 TEE_Result sm2_mbedtls_pke_encrypt(struct ecc_public_key *key,
13 				   const uint8_t *src, size_t src_len,
14 				   uint8_t *dst, size_t *dst_len);
15 
16 TEE_Result sm2_mbedtls_pke_decrypt(struct ecc_keypair *key, const uint8_t *src,
17 				   size_t src_len, uint8_t *dst,
18 				   size_t *dst_len);
19 #endif /* _SM2_PKE_H_ */
20