logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_kpp_ssgen - generate a shared secret

Arguments

handle
           [in] cipher handle

       pubkey
           [in] public key of peer that shall be used to generate the shared secret with

       pubkeylen
           [in] length of the public key buffer

       ss
           [out] generated shared secret

       sslen
           [in] length of key buffer

       access
           [in] kernel access type (KCAPI_ACCESS_HEURISTIC - use internal heuristic for fastest kernel access;
           KCAPI_ACCESS_VMSPLICE - use vmsplice access; KCAPI_ACCESS_SENDMSG - sendmsg access)

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

return number of bytes returned by the shared secret generation operation upon success; a negative
       errno-style error code if an error occurred

Name

       kcapi_kpp_ssgen - generate a shared secret

Synopsis

ssize_tkcapi_kpp_ssgen(structkcapi_handle*handle,constuint8_t*pubkey,size_tpubkeylen,uint8_t*ss,size_tsslen,intaccess);

See Also