sm4_crypt_block(9)
okay so bestie, this is sm4_crypt_block(9) from the Kernel API Manual β short page, main-character function, letβs get into it πβ¨
πΈ NAME πΈ
sm4_crypt_block β Encrypt or decrypt a single SM4 block π
Like, exactly one block. Not a whole stack of them. One block, iconic behavior, no cap.
β¨ SYNOPSIS β¨
void sm4_crypt_block (const u32 *rk , u8 *out , const u8 *in );
π ARGUMENTS π
rkβ Therkey_encfor encrypt orrkey_decfor decrypt πoutβ Buffer to store output data π¦inβ Buffer containing the input data π§
π₯ SEE ALSO π₯
- Kernel file
./include/crypto/sm4.hπ sm4_expandkey(9)π¦
thatβs the whole page, bestie β source/version: ./include/crypto, date: October 2026. mwah πβ¨
π¦ 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