/home/abui.../aes_ccm.h(3)

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

πŸ¦‹ /home/abui.../aes_ccm.h(3) β€” your fave header, bestie

okay so this is a page from the Library Functions Manual, and it's literally all about /home/abuild/rpmbuild/BUILD/libzpc-legacy-1.5.0-build/libzpc-1.5.0/include/zpc/aes_ccm.h β€” the AES-CCM API. yes that whole path, no I'm not shortening it, it's iconic as-is πŸ’…


✨ NAME ✨

/home/abuild/rpmbuild/BUILD/libzpc-legacy-1.5.0-build/libzpc-1.5.0/include/zpc/aes_ccm.h β€” AES-CCM API.

πŸŽ€ SYNOPSIS πŸŽ€

πŸ’œ Functions

int zpc_aes_ccm_alloc (struct zpc_aes_ccm **ctx)
int zpc_aes_ccm_set_key (struct zpc_aes_ccm *ctx, struct zpc_aes_key
    *key)
int zpc_aes_ccm_set_iv (struct zpc_aes_ccm *ctx, const unsigned char
    *iv, size_t ivlen)
int zpc_aes_ccm_encrypt (struct zpc_aes_ccm *ctx, unsigned char *ct,
    unsigned char *mac, size_t maclen, const unsigned char *aad, size_t
    aadlen, const unsigned char *pt, size_t ptlen)
int zpc_aes_ccm_decrypt (struct zpc_aes_ccm *ctx, unsigned char *pt,
    const unsigned char *mac, size_t maclen, const unsigned char *aad,
    size_t aadlen, const unsigned char *ct, size_t ctlen)
void zpc_aes_ccm_free (struct zpc_aes_ccm **ctx)

🌸 Detailed Description 🌸

AES-CCM API. 🫢

So basically: this is the authenticated encryption API for the Advanced Encryption Standard (AES) block cipher [1], in Counter with CBC-MAC mode of operation [2]. like it encrypts and it authenticates, main character energy fr fr ✨

Definition in file aes_ccm.h.

πŸ‘‘ Function Documentation πŸ‘‘

⭐ int zpc_aes_ccm_alloc (struct zpc_aes_ccm ** ctx)

Allocate a brand-new context for an AES-CCM operation. fresh start, new you πŸ’–

Parameters

  • ctx β€” AES-CCM context

Returns

0 on success. Otherwise, a non-zero error code is returned. (so, yk, check it πŸ™ˆ)


⭐ int zpc_aes_ccm_set_key (struct zpc_aes_ccm * ctx, struct zpc_aes_key * key)

Set the key to be used in the context of an AES-CCM operation. the key is the whole vibe, no cap πŸ”‘

Parameters

  • ctx β€” AES-CCM context
  • key β€” AES key

Returns

0 on success. Otherwise, a non-zero error code is returned.


⭐ int zpc_aes_ccm_set_iv (struct zpc_aes_ccm * ctx, const unsigned char * iv, size_t ivlen)

Set the initialization vector to be used in the context of an AES-CCM operation. set the IV, slay the day 🌈

Parameters

  • ctx β€” AES-CCM context
  • iv β€” 7-13 byte initialization vector
  • ivlen β€” initialization vector length [bytes]

Returns

0 on success. Otherwise, a non-zero error code is returned.

heads up bestie: that IV is 7-13 bytes, not whatever you feel like πŸ’€

⭐ int zpc_aes_ccm_encrypt (struct zpc_aes_ccm * ctx, unsigned char * ct, unsigned char * mac, size_t maclen, const unsigned char * aad, size_t aadlen, const unsigned char * pt, size_t ptlen)

Do an AES-CCM authenticated encryption operation. this is the glow-up step πŸ”₯

Parameters

  • ctx β€” AES-CCM context
  • ct β€” ciphertext
  • mac β€” message authentication code
  • maclen β€” message authentication code length [bytes]
  • aad β€” additional authenticated data
  • aadlen β€” additional authenticated data length [bytes]
  • pt β€” plaintext
  • ptlen β€” plaintext length [bytes]

Returns

0 on success. Otherwise, a non-zero error code is returned.


⭐ int zpc_aes_ccm_decrypt (struct zpc_aes_ccm * ctx, unsigned char * pt, const unsigned char * mac, size_t maclen, const unsigned char * aad, size_t aadlen, const unsigned char * ct, size_t ctlen)

Do an AES-CCM authenticated decryption operation. reverse uno card πŸ¦‹

Parameters

  • ctx β€” AES-CCM context
  • pt β€” plaintext
  • mac β€” message authentication code
  • maclen β€” message authentication code length [bytes]
  • aad β€” additional authenticated data
  • aadlen β€” additional authenticated data length [bytes]
  • ct β€” ciphertext
  • ctlen β€” ciphertext length [bytes]

Returns

0 on success. Otherwise, a non-zero error code is returned.


⭐ void zpc_aes_ccm_free (struct zpc_aes_ccm ** ctx)

Free an AES-CCM context. clean up after yourself, we love a responsible icon 🧚

Parameters

  • ctx β€” AES-CCM context

πŸ’« Author πŸ’«

Generated automatically by Doxygen for libzpc from the source code. (not a human, but honestly? it ate πŸŽ€)


aaand that's the whole page, bestie β€” mwah πŸ’‹

sign-off: this little legend came from libzpc, Version 1.4, for /home/abui.../aes_ccm.h(3) β€” go forth and encrypt responsibly, ily πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from