crypto_skcipher_import(9)
π crypto_skcipher_import(9) β the Kernel API Manual, bestie edition β¨
okay so you found the crypto_skcipher_import(9) page in the Kernel API Manual and you're like "what does importing even mean here" β don't worry, it's actually so simple. Sit down, grab a matcha π, let's go.
πΈ NAME πΈ
crypto_skcipher_import β literally just importing partial state π«Ά
β¨ SYNOPSIS β¨
int crypto_skcipher_import (struct skcipher_request *req , const void
*in );
that's it, that's the whole vibe check π two args, one int back.
π ARGUMENTS π
reqβ the reference to theskcipher_requesthandle that holds, like, all the information needed to perform the operation. it's the main character of this function ngl πinβ the buffer holding the state. the goods. the whole situation π¦
π¦ DESCRIPTION π¦
so what this does: it imports the partial state of the transformation. fr fr.
It loads the entire state of the ongoing transformation from a provided block of data, so the transformation can just... continue from this point onward. like picking a save file back up mid-game, iconic behavior tbh β¨
and listen β no data processing happens at this point. none. zero. it's purely a state-loading moment, so don't expect any encrypting or decrypting to sneak in here π
π RETURN π
0β if the cipher operation was successful π slay< 0β if an error occurred π not slay
π SEE ALSO π
the whole friend group, no cap. here's everyone, and they're all in the 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_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_callback(9)skcipher_request_set_crypt(9)
and that's the whole page bestie, you ate that π«Άπ
β signed off from ./include/crypto, dated October 2026, on the crypto_skcipher_import(9) manual page. go be iconic with your state importing π§ββοΈβ
π¦ 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