crypto_cipher_decrypt_one(9)
π crypto_cipher_decrypt_one β like, the kernel API manual, bestie
okay so this is a page from the Kernel API Manual and it's about crypto_cipher_decrypt_one, which is literally the function that un-scrambles one block of ciphertext for you. it's giving "reverse card" energy and i'm obsessed π¦
β¨ NAME β¨
crypto_cipher_decrypt_one β decrypt one block of ciphertext π
πΈ SYNOPSIS πΈ
void crypto_cipher_decrypt_one (struct crypto_cipher *tfm , u8 *dst ,
const u8 *src );
like, that's the whole signature. no cap, that's it π«Ά
π ARGUMENTS π
tfmβ the cipher handle π« (your main character struct, the one that knows which cipher you're running)dstβ points to the buffer that will be filled with the plaintext β¨ (this is where the readable stuff lands)srcβ buffer holding the ciphertext to be decrypted π (the scrambled input, the before-picture)
π₯ DESCRIPTION π₯
Invoke the decryption operation of one block. that's the vibe β one call, one block, decrypted, done π
β οΈ real talk though: the caller must ensure that the plaintext and ciphertext buffers are at least one block in size. not me letting you pass a tiny buffer β please don't, that's a whole situation π the function is not gonna size-check for you, so know your block size before you swing.
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/internal/cipher.hπ Single Block Cipher API(9)crypto_alloc_cipher(9)crypto_free_cipher(9)crypto_has_cipher(9)crypto_cipher_blocksize(9)crypto_cipher_setkey(9)crypto_cipher_encrypt_one(9)β the other direction, iykyk π
πΈ mwah, that's the page. it lives at ./include/crypto/internal, dated October 2026, and it's part of the Kernel API Manual β go forth and decrypt responsibly, bestie πβ¨
π¦ 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