File: sm2-dsa.h

package info (click to toggle)
optee-os 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,560 kB
  • sloc: ansic: 441,914; asm: 12,903; python: 3,719; makefile: 1,676; sh: 238
file content (20 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

// SPDX-License-Identifier: BSD-2-Clause
/*
 * Copyright (c) 2021 Huawei Technologies Co., Ltd
 */

#ifndef _SM2_DSA_H_

#include <crypto/crypto.h>
#include <stdint.h>
#include <tee_api_types.h>

TEE_Result sm2_mbedtls_dsa_sign(uint32_t algo, struct ecc_keypair *key,
				const uint8_t *msg, size_t msg_len,
				uint8_t *sig, size_t *sig_len);

TEE_Result sm2_mbedtls_dsa_verify(uint32_t algo, struct ecc_public_key *key,
				  const uint8_t *msg, size_t msg_len,
				  const uint8_t *sig, size_t sig_len);
#endif /* _SM2_DSA_H_ */