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

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

πŸ’– /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 context
  • key β€” 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 context
  • ct β€” ciphertext
  • pt β€” plaintext
  • ptlen β€” 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 context
  • pt β€” plaintext
  • ct β€” ciphertext
  • ctlen β€” 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