Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

kcapi_aead_setkey - set the key for the AEAD 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; a negative errno-style error code if an error occurred

Name

       kcapi_aead_setkey - set the key for the AEAD handle

Synopsis

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

See Also