AES(3)
β¨ NAME β¨
okay so this is the AES(3) page from the Library Functions Manual, and the main characters are setupAESstate, aesCBCencrypt, and aesCBCdecrypt β all about the advanced encryption standard (rijndael). slay. π
πΈ SYNOPSIS πΈ
#include <u.h>
#include <libc.h>
#include <mp.h>
#include <libsec.h>
void setupAESstate(AESstate *s, uchar key[], int keybytes, uchar *ivec)
void aesCBCencrypt(uchar*, int, AESstate*)
void aesCBCdecrypt(uchar*, int, AESstate*)
π DESCRIPTION π
bestie, here's the tea: DES is being replaced by Rijndael, also known as AES, as the preferred block ciper. π setupAESstate, aesCBCencrypt, and aesCBCdecrypt implement cipher block chaining encryption. periodt.
Keybytes should be 16, 24, or 32. No cap.
The initialization vector ivec of AESbsize bytes should be random enough to be unlikely to be reused β but it does not need to be cryptographically strongly unpredictable. fr fr, that's literally the spec. π
π SOURCE π
/src/libsec β that's where this lives, bestie. π«Ά
π¦ SEE ALSO π¦
π that's a wrap on AES(3) from the Library Functions Manual β source/version: /src/libsec; date: not listed on this page. byeeeee πβ¨
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms