skcipher_re...set_callback(9)
okay so bestie, welcome to the Kernel API Manual page for skcipher_request_set_callback(9) β yes, the whole function name is a mouthful, but sheβs iconic π
πΈ NAME πΈ
skcipher_request_set_callback β set asynchronous callback function. periodt π
β¨ SYNOPSIS β¨
void skcipher_request_set_callback (struct skcipher_request *req , u32
flags , crypto_completion_t compl , void *data );
π ARGUMENTS π
okay hereβs the cast, bestie:
reqβ request handle π«Άflagsβ specify zero or an ORing of the flags:CRYPTO_TFM_REQ_MAY_BACKLOGβ the request queue may back log and increase the wait queue beyond the initial maximum size;CRYPTO_TFM_REQ_MAY_SLEEPβ the request processing may sleep.
complβ callback function pointer to be registered with the request handle πdataβ the data pointer refers to memory that is not used by the kernel crypto API, but provided to the callback function for it to use. Here, the caller can provide a reference to memory the callback function can operate on. As the callback function is invoked asynchronously to the related functionality, it may need to access data structures of the related functionality which can be referenced using this pointer. The callback function can access the memory via the"data"field in thecrypto_async_requestdata structure provided to the callback function. π
π DESCRIPTION π
This function is the one that lets you set the callback function that gets triggered once the cipher operation completes. The callback function is registered with the skcipher_request handle and must comply with the following template:
void callback_function(struct crypto_async_request *req, int error)
π₯ SEE ALSO π₯
the whole group chat pulls up:
- Kernel file
./include/crypto/skcipher.h struct skcipher_request(9)struct skcipher_alg(9)struct lskcipher_alg(9)Symmetric Key Cipher API(9)crypto_alloc_skcipher(9)crypto_alloc_lskcipher(9)crypto_free_skcipher(9)crypto_free_lskcipher(9)crypto_has_skcipher(9)crypto_skcipher_ivsize(9)crypto_lskcipher_ivsize(9)crypto_skcipher_blocksize(9)crypto_lskcipher_blocksize(9)crypto_skcipher_chunksize(9)crypto_lskcipher_chunksize(9)crypto_skcipher_statesize(9)crypto_lskcipher_statesize(9)crypto_skcipher_setkey(9)crypto_lskcipher_setkey(9)crypto_skcipher_reqtfm(9)crypto_skcipher_encrypt(9)crypto_skcipher_decrypt(9)crypto_skcipher_export(9)crypto_skcipher_import(9)crypto_lskcipher_encrypt(9)crypto_lskcipher_decrypt(9)Symmetric Key Cipher Request Handle(9)crypto_skcipher_reqsize(9)skcipher_request_set_tfm(9)skcipher_request_alloc(9)skcipher_request_free(9)skcipher_request_set_crypt(9)
xoxo, your Unix bestie π β source/version + date situation: ./include/crypto, October 2026 β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms