Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

kcapi_cipher_setkey - set the key for the cipher handle

Arguments

handle
           [in] cipher handle

       key
           [in] key buffer

       keylen
           [in] length of key buffer

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       With this function, the caller sets the key for subsequent encryption or decryption operations.

       After the caller provided the key, the caller may securely destroy the key as it is now maintained by the
       kernel.

       return 0 upon success (in case of an akcipher handle, a positive integer is returned that denominates the
       maximum output size of the cryptographic operation -- this value must be used as the size of the output
       buffer for one cryptographic operation); a negative errno-style error code if an error occurred

Name

       kcapi_cipher_setkey - set the key for the cipher handle

Synopsis

intkcapi_cipher_setkey(structkcapi_handle*handle,constuint8_t*key,uint32_tkeylen);

See Also