crypto_akcip...sync_decrypt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 from crypto_alloc_akcipher. no shortcuts, no homemade handles πŸ’…
  • src β€” the source buffer, aka where the ciphertext situation is living
  • slen β€” the source length. yes you have to tell her how long src is, 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 πŸ‘‘

the whole friend group, literally obsessed with all of them 🫢


ok that's the page!! source is ./include/crypto, dated October 2026, and it's crypto_akcip...sync_decrypt(9) in case you need to cite her. mwah, go decrypt something iconic πŸ’–πŸ§šβ€β™€οΈβ­
πŸ“¦ where this page comes from