/home/abui.../aes_ecb.h(3)
π /home/abui.../aes_ecb.h β AES-ECB API π
okay so bestie, this is the manual page for /home/abuild/rpmbuild/BUILD/libzpc-legacy-1.5.0-build/libzpc-1.5.0/include/zpc/aes_ecb.h, which is literally the AES-ECB API. Yes the path is a whole mouthful, no we're not renaming it, it's part of the vibe. π
β¨ SYNOPSIS β¨
πΈ Functions πΈ
int zpc_aes_ecb_alloc (struct zpc_aes_ecb **ctx)
int zpc_aes_ecb_set_key (struct zpc_aes_ecb *ctx, struct zpc_aes_key
*key)
int zpc_aes_ecb_encrypt (struct zpc_aes_ecb *ctx, unsigned char *ct,
const unsigned char *pt, size_t ptlen)
int zpc_aes_ecb_decrypt (struct zpc_aes_ecb *ctx, unsigned char *pt,
const unsigned char *ct, size_t ctlen)
void zpc_aes_ecb_free (struct zpc_aes_ecb **ctx)
π¦ Detailed Description π¦
AES-ECB API. That's the whole vibe. π
This is the encryption API for the Advanced Encryption Standard (AES) block cipher [1], in Electronic Code Book (ECB) mode of operation [8]. The brackets are literally citations, bestie, they're part of the original, don't come for me. π
Definition in file aes_ecb.h.
π Function Documentation π
π int zpc_aes_ecb_alloc (struct zpc_aes_ecb ** ctx)
Allocate a brand-new context for an AES-ECB operation. It's giving "fresh start, main character energy". β¨
Parameters
ctxβ AES-ECB context
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_aes_ecb_set_key (struct zpc_aes_ecb * ctx, struct zpc_aes_key * key)
Set the key that's gonna be used in the context of an AES-ECB operation. The key is the whole personality of the operation, ngl. π
Parameters
ctxβ AES-ECB contextkeyβ AES key
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_aes_ecb_encrypt (struct zpc_aes_ecb * ctx, unsigned char * ct, const unsigned char * pt, size_t ptlen)
Do an AES-ECB encryption operation. Turn that plaintext into ciphertext, slay. π₯
Parameters
ctxβ AES-ECB contextctβ ciphertextptβ plaintextptlenβ plaintext length [bytes]
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_aes_ecb_decrypt (struct zpc_aes_ecb * ctx, unsigned char * pt, const unsigned char * ct, size_t ctlen)
Do an AES-ECB decryption operation. The reverse trip, ciphertext back to plaintext, we love a comeback story. π«Ά
Parameters
ctxβ AES-ECB contextptβ plaintextctβ ciphertextctlenβ ciphertext length [bytes]
Returns
0 on success. Otherwise, a non-zero error code is returned.
π void zpc_aes_ecb_free (struct zpc_aes_ecb ** ctx)
Free an AES-ECB context. Clean up after yourself, icon behaviour only. π§
Parameters
ctxβ AES-ECB context
π Author π
Generated automatically by Doxygen for libzpc from the source code. Not a human, just a very diligent little document generator doing its thing. π€β¨
so yeah, that's the whole page. libzpc, Version 1.4, dated /home/abui.../aes_ecb.h(3) β mwah, bye bestie, go encrypt something responsibly π
ππ
π¦ 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