cpacf_kma(9)
π cpacf_kma(9) β KMA instruction, but make it make sense π
Okay bestie, welcome to the Kernel API Manual entry for cpacf_kma β no cap, this is the function that executes the KMA (CIPHER MESSAGE WITH AUTHENTICATION) instruction. Itβs giving kernel crypto, and honestly? Iconic. π«Άβ¨
β¨ NAME β¨
cpacf_kma β executes the KMA (CIPHER MESSAGE WITH AUTHENTICATION) instruction. Periodt. π
π¦ SYNOPSIS π¦
void cpacf_kma (unsigned long func , void *param , u8 *dest , const u8
*src , unsigned long src_len , const u8 *aad , unsigned long aad_len );
Exact signature, copy-paste ready, protected by vibes. β¨
πΈ ARGUMENTS πΈ
Okay these are the little cuties you pass in:
funcβ the function code passed to KMA; see theCPACF_KMA_xxxdefines. This is literally the βwhat are we doingβ knob. πparamβ address of the parameter block; seePOPfor details on eachfunc. Your parameter-block bestie lives here. πdestβ address of the destination memory area. This is the destination address, bestie. πsrcβ address of the source memory area. This is the source address, fr fr. π¦src_lenβ length of thesrcoperand in bytes. Count those bytes, no cap. π’aadβ address of the additional authenticated data memory area. AAD said βIβm the moment.β πaad_lenβ length of theaadoperand in bytes. Another byte count, another slay. π
π SEE ALSO π
Kernel file ./arch/s390/include/asm/cpacf.h and the whole cpacf friend group:
cpacf_query(9)cpacf_qai(9)cpacf_km(9)cpacf_kmc(9)cpacf_kimd(9)cpacf_klmd(9)_cpacf_kmac(9)cpacf_kmac(9)cpacf_kmctr(9)cpacf_prno(9)cpacf_trng(9)cpacf_pcc(9)cpacf_pckmo(9)
πΈ Cute sign-off: source/version ./arch/s390/include/asm, date October 2026, page cpacf_kma(9) β mwah, go forth and KMA responsibly πβ¨
π¦ 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