'\" t .\" Title: kcapi_kpp_ecdh_setcurve .\" Author: .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: November 2020 .\" Manual: Programming Interface .\" Source: libkcapi Manual 1.2.1 .\" Language: English .\" .TH "KCAPI_KPP_ECDH_SETCU" "3" "November 2020" "libkcapi Manual 1\&.2\&.1" "Programming Interface" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" kcapi_kpp_ecdh_setcurve \- set the ECC curve to be used for ECDH .SH "SYNOPSIS" .HP \w'int\ kcapi_kpp_ecdh_setcurve('u .BI "int kcapi_kpp_ecdh_setcurve(struct\ kcapi_handle\ *\ " "handle" ", unsigned\ long\ " "curve_id" ");" .SH "ARGUMENTS" .PP \fIhandle\fR .RS 4 [in] cipher handle .RE .PP \fIcurve_id\fR .RS 4 [in] ID of the ECC curve .RE .SH "DESCRIPTION" .PP With this function, the caller sets the ECC curve for subsequent cipher operations\&. The curve ID is one of the ECC_CURVE_* identifiers\&. .PP Note, this function defines that the subsequent key generation and shared secret operation performs an ECC Diffie\-Hellman operation\&. .PP \fIreturn\fR 0 upon success; a negative errno\-style error code if an error occurred .SH "AUTHOR" .PP \fBStephan Mueller\fR <\&smueller@chronox.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br