/home/abui.../aes_ccm.h(3)
π¦ /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 contextkeyβ 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 contextivβ 7-13 byte initialization vectorivlenβ 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 contextctβ ciphertextmacβ message authentication codemaclenβ message authentication code length [bytes]aadβ additional authenticated dataaadlenβ additional authenticated data length [bytes]ptβ plaintextptlenβ 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 contextptβ plaintextmacβ message authentication codemaclenβ message authentication code length [bytes]aadβ additional authenticated dataaadlenβ additional authenticated data length [bytes]ctβ ciphertextctlenβ 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
- 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