1 2 // SPDX-License-Identifier: BSD-2-Clause 3 /* 4 * Copyright (c) 2021 Huawei Technologies Co., Ltd 5 */ 6 7 #ifndef _SM2_DSA_H_ 8 9 #include <crypto/crypto.h> 10 #include <stdint.h> 11 #include <tee_api_types.h> 12 13 TEE_Result sm2_mbedtls_dsa_sign(uint32_t algo, struct ecc_keypair *key, 14 const uint8_t *msg, size_t msg_len, 15 uint8_t *sig, size_t *sig_len); 16 17 TEE_Result sm2_mbedtls_dsa_verify(uint32_t algo, struct ecc_public_key *key, 18 const uint8_t *msg, size_t msg_len, 19 const uint8_t *sig, size_t sig_len); 20 #endif /* _SM2_DSA_H_ */ 21