omac1_aes_128(9)
π omac1_aes_128 (kernel API manual, bestie edition) π
okay so real talk, this is omac1_aes_128(9) from the Kernel API Manual and it's literally the glow-up page for a MAC function. stay with me, it's not scary, i promise π«Ά
β¨ NAME β¨
omac1_aes_128 β One-Key CBC MAC (OMAC1) hash with AES-128 (aka AES-CMAC). yes she has three names, she's THAT girl π
πΈ SYNOPSIS πΈ
int omac1_aes_128 (u8 *key , u8 *data , size_t data_len , u8 *mac );
like, that's the whole vibe. four args, one int back. clean. iconic. no notes π
π ARGUMENTS π
keyβ your 128-bit key for the hash operation. it's giving secret. guard it with your life fr fr πdataβ the data buffer for which a MAC is determined. this is the stuff you're authenticating, bestie π¦data_lenβ length of thedatabuffer, in bytes. yes, bytes. count them. don't lie about them πmacβ buffer for the MAC, and it's 128 bits, i.e. 16 bytes. 16. bytes. don't skimp or you're gonna have a bad time π
β RETURN β
0on success π slay-1on failure π not slay
π¦ DESCRIPTION π¦
so basically, this is a mode for using a block cipher (AES in this case) for authentication. like, turning your encryption bestie into a bouncer at the club π«Ά
and for the lore: OMAC1 was standardized with the name CMAC by NIST in a Special Publication (SP) 800-38B. so if you ever see "CMAC" out in the wild, that's her. same girl, government name. iykyk π
π SEE ALSO π
- Kernel file
./drivers/staging/rtl8723bs/core/rtw_security.cβ go read the source, it's right there, be nosy π omac1_aes_128_vector(9)β her sister page, the vector version. go say hi π
ngl this whole page lives in ./drivers/staging/rtl8723bs/core, so if you're lost, that's your home base bestie π
that's the whole page! source/version is ./drivers/staging/rtl8723bs/core, dated October 2026, and this manual page is omac1_aes_128(9) β mwah, go authenticate something safely, ily ππ§ββοΈ
π¦ 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