AES_CMAC.H(3)
π NAME π
ok so this is the manual page for /home/abuild/rpmbuild/BUILD/libzpc-legacy-1.5.0-build/libzpc-1.5.0/include/zpc/aes_cmac.h β it's literally the AES-CMAC API, bestie. it lives in the Library Functions Manual, and yeah the header path is long enough to need its own zip code, we move π
π¦ SYNOPSIS π¦
β¨ Functions β¨
int zpc_aes_cmac_alloc (struct zpc_aes_cmac **ctx)
int zpc_aes_cmac_set_key (struct zpc_aes_cmac *ctx, struct zpc_aes_key
*key)
int zpc_aes_cmac_sign (struct zpc_aes_cmac *ctx, unsigned char *mac,
size_t maclen, const unsigned char *msg, size_t msglen)
int zpc_aes_cmac_verify (struct zpc_aes_cmac *ctx, const unsigned char
*mac, size_t maclen, const unsigned char *msg, size_t msglen)
void zpc_aes_cmac_free (struct zpc_aes_cmac **ctx)
πΈ Detailed Description πΈ
AES-CMAC API. periodt.
ok so picture this: it's the Message authentication API for the Cipher-based Message Authentication Code (CMAC) [3], and it's based on the Advanced Encryption Standard (AES) block cipher [1]. that's the whole vibe π«Ά
Definition in file aes_cmac.h.
π Function Documentation π
π int zpc_aes_cmac_alloc (struct zpc_aes_cmac ** ctx)
Allocate a new context for an AES-CMAC operation. fresh context, fresh start, main character energy β¨
Parameters
ctxβ AES-CMAC context
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_aes_cmac_set_key (struct zpc_aes_cmac * ctx, struct zpc_aes_key * key)
Set the key to be used in the context of an AES-CMAC operation. give it the key, it handles the rest π
Parameters
ctxβ AES-CMAC contextkeyβ AES key
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_aes_cmac_sign (struct zpc_aes_cmac * ctx, unsigned char * mac, size_t maclen, const unsigned char * msg, size_t msglen)
Do an AES-CMAC signing operation. sign it, slay it, done π₯
Parameters
ctxβ AES-CMAC contextmacβ message authentication codemaclenβ message authentication code length [bytes]msgβ messagemsglenβ message length [bytes]
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_aes_cmac_verify (struct zpc_aes_cmac * ctx, const unsigned char * mac, size_t maclen, const unsigned char * msg, size_t msglen)
Do an AES-CMAC verify operation. the vibe check of the crypto world, fr fr π§
Parameters
ctxβ AES-CMAC contextmacβ message authentication codemaclenβ message authentication code length [bytes]msgβ messagemsglenβ message length [bytes]
Returns
0 on success. Otherwise, a non-zero error code is returned.
π void zpc_aes_cmac_free (struct zpc_aes_cmac ** ctx)
Free an AES-CMAC context. clean up after yourself, we love a tidy icon π
Parameters
ctxβ AES-CMAC context
π Author π
Generated automatically by Doxygen for libzpc from the source code. not a human, just a very diligent robot bestie π«Ά
anyway that's the whole page!! this was libzpc Version 1.4, dated /home/abui.../aes_cmac.h(3) β mwah, go encrypt something cute ππΈβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libzpc-legacy-devel 1.5.0-160000.2.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms