1KCAPI_KPP_ECDH_SETCU(3)      Programming Interface     KCAPI_KPP_ECDH_SETCU(3)
2
3
4

NAME

6       kcapi_kpp_ecdh_setcurve - set the ECC curve to be used for ECDH
7

SYNOPSIS

9       int kcapi_kpp_ecdh_setcurve(struct kcapi_handle * handle,
10                                   unsigned long curve_id);
11

ARGUMENTS

13       handle
14           [in] cipher handle
15
16       curve_id
17           [in] ID of the ECC curve
18

DESCRIPTION

20       With this function, the caller sets the ECC curve for subsequent cipher
21       operations. The curve ID is one of the ECC_CURVE_* identifiers.
22
23       Note, this function defines that the subsequent key generation and
24       shared secret operation performs an ECC Diffie-Hellman operation.
25
26       return 0 upon success; a negative errno-style error code if an error
27       occurred
28

AUTHOR

30       Stephan Mueller <smueller@chronox.de>
31           Author.
32
34libkcapi Manual 1.2.0             August 2020          KCAPI_KPP_ECDH_SETCU(3)
Impressum