crypto_akcip...sync_decrypt(9)
π NAME π
crypto_akcipher_sync_decrypt β Invoke public key decrypt operation β¨
okay so real talk, this whole page lives in the Kernel API Manual (section 9, kernel-API girlies rise π«Ά), and this one function is your go-to when you need the actual public key decrypt to happen. no cap.
β¨ SYNOPSIS β¨
int crypto_akcipher_sync_decrypt (struct crypto_akcipher *tfm , const
void *src , unsigned int slen , void *dst , unsigned int dlen );
look at her. five params, one int return, absolutely serving π
π ARGUMENTS π
tfmβ your AKCIPHER tfm handle, and bestie it has to be one you got fromcrypto_alloc_akcipher. no shortcuts, no homemade handles πsrcβ the source buffer, aka where the ciphertext situation is livingslenβ the source length. yes you have to tell her how longsrcis, she's not a mind reader πdstβ the destination obuffer π (that spelling is straight from the source and honestly it's canon now)dlenβ the destination length
π¦ DESCRIPTION π¦
So what does she actually do? The function invokes the specific public key decrypt operation for a given public key algorithm. that's it, that's the whole vibe πΈ
like, it's the sync decrypt entry point β you hand her a tfm, a source buffer with a length, a destination buffer with a length, and she routes the decrypt through whatever public key algorithm that tfm is repping. main character energy, lowkey π₯
π RETURN π
- Output length on success π (not just 0/1, she gives you the actual length, she's generous like that)
- an error code in case of error π
so like, check your return values, bestie. fr fr.
π SEE ALSO π
- Kernel file
./include/crypto/akcipher.h struct akcipher_request(9)struct crypto_akcipher(9)struct akcipher_alg(9)Generic Public Key Cipher API(9)crypto_alloc_akcipher(9)crypto_free_akcipher(9)akcipher_request_alloc(9)akcipher_request_free(9)akcipher_request_set_callback(9)akcipher_request_set_crypt(9)crypto_akcipher_maxsize(9)crypto_akcipher_encrypt(9)crypto_akcipher_decrypt(9)crypto_akcipher_sync_encrypt(9)crypto_akcipher_set_pub_key(9)crypto_akcipher_set_priv_key(9)
the whole friend group, literally obsessed with all of them π«Ά
ok that's the page!! source is./include/crypto, dated October 2026, and it'scrypto_akcip...sync_decrypt(9)in case you need to cite her. mwah, go decrypt something iconic ππ§ββοΈβ
π¦ 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