WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
curve_ec_fp.h
浏览该文件的文档.
1
9#ifndef CURVE_EC_FP_H
10#define CURVE_EC_FP_H
11
12#include "crypto_pke_struct.h"
13
14#ifdef __cplusplus
15#if __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18#endif /* __cplusplus */
19
28td_s32 decode_priv_key(td_u8 *output_key, const td_u8 *input_key, td_u32 klen);
29
38td_s32 decode_point_x(td_u8 *output_u_x, const td_u8 *input_u_x, td_u32 ulen);
39
48td_s32 encode_point_x(td_u8 *output_u_x, const td_u8 *input_u_x, td_u32 ulen);
49
62 const drv_pke_data *rx);
63
75
76#ifdef __cplusplus
77#if __cplusplus
78}
79#endif /* __cplusplus */
80#endif /* __cplusplus */
81
82#endif /* CURVE_EC_FP_H */
#define CIPHER_CHECK_WORD
Definition crypto_security.h:111
td_s32 curve_ecfp_mul(const drv_pke_ecc_curve *ecc, const drv_pke_data *k, const drv_pke_data *ux, const drv_pke_data *rx)
Rx = k * ux. calculate point multiplication for curve25519 and curve448. before call this API you sho...
Definition curve_ec_fp.c:198
td_s32 decode_point_x(td_u8 *output_u_x, const td_u8 *input_u_x, td_u32 ulen)
decode the x coordinate of the point. In RFC7748, the k value and point on curve are all encoded.
Definition curve_ec_fp.c:168
td_s32 encode_point_x(td_u8 *output_u_x, const td_u8 *input_u_x, td_u32 ulen)
encode the x coordinate of the point. In RFC7748, the k value and point on curve are all encoded.
Definition curve_ec_fp.c:187
td_s32 curve_ecfp_mul_dot(const drv_pke_ecc_curve *ecc, const drv_pke_data *k, const drv_pke_ecc_point *p, const drv_pke_ecc_point *r CIPHER_CHECK_WORD)
rx = k * px. calculate point multiplication for curve25519 and curve448.
Definition curve_ec_fp.c:232
td_s32 decode_priv_key(td_u8 *output_key, const td_u8 *input_key, td_u32 klen)
decode the normal k value. In RFC7748, the k value and point on curve are all encoded.
Definition curve_ec_fp.c:143
Definition crypto_pke_struct.h:74
Definition crypto_pke_struct.h:96
Definition crypto_pke_struct.h:80
unsigned char td_u8
Definition td_type.h:36
unsigned int td_u32
Definition td_type.h:38
int td_s32
Definition td_type.h:44