AES_CMAC.H(3)

πŸ“¦ version 1.5.0, in opensuse-leap 16.0

πŸ’– 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 context
  • key β€” 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 context
  • mac β€” message authentication code
  • maclen β€” message authentication code length [bytes]
  • msg β€” message
  • msglen β€” 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 context
  • mac β€” message authentication code
  • maclen β€” message authentication code length [bytes]
  • msg β€” message
  • msglen β€” 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