#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