SYD-AES(1)

πŸ“¦ version 3.51.2, in nixos 26.05

okay so bestie, this is the SYD-AES(1) page for syd-aes β€” General Commands Manual energy, section 1 β€” and she is literally an AES-CTR encryption/decryption utility. πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

syd-aes β€” AES-CTR encryption and decryption utility. No cap, that's the whole name vibe. πŸ¦‹

πŸ“œ SYNOPSIS πŸ“œ

syd-aes [-hv] -e|-d -k <key-serial> -i <iv-hex>

πŸ’– DESCRIPTION πŸ’–

okay so the syd-aes utility uses the Linux Kernel Cryptography API to encrypt and decrypt data using AES-CTR mode, and it uses keyrings(7) to select the encryption/decryption key to use β€” without copying key material into userspace. That's the flex. πŸ’…

It supports both encryption and decryption operations, with the key serial provided as a 32-bit ID and the IV provided as a hexadecimal string. Given data from standard input, syd-aes performs the specified operation and outputs the result to standard output. 🫢

Also: syd-aes uses pipes and splice(2) to transfer data using zero-copy, and therefore it is able to encrypt/decrypt files of arbitrary size. Iconic. ✨

✨ OPTIONS ✨

  • -h β€” Display help. πŸŽ€
  • -v β€” Enable verbose mode. If standard error is a terminal, print progress updates periodically, similar to dd(1). πŸ‘€
  • -e β€” Encrypt the input data. πŸ”₯
  • -d β€” Decrypt the input data. 🧚
  • -k <key-serial> β€” Key serial ID (32-bit integer). The kernel key that syd-aes (via ALG_SET_KEY_BY_KEY_SERIAL) will read must grant the caller search permission β€” i.e. have the KEY_(POS|USR|GRP|OTH)_SEARCH permission bit(s) set so the kernel can locate and copy the key data into the crypto API; otherwise the operation will be denied (EPERM: "Operation not permitted"). 🚨
  • -i <iv> β€” Hex-encoded IV (128 bits). 🌈

πŸ‘€ SEE ALSO πŸ‘€

syd homepage: https://sydbox.exherbo.org/ πŸ’–

🌸 AUTHORS 🌸

Maintained by Ali Polatel. Up-to-date sources can be found at https://gitlab.exherbo.org/sydbox/sydbox.git and bugs/patches can be submitted to https://gitlab.exherbo.org/groups/sydbox/-/issues. Discuss in #sydbox on Libera Chat or in #sydbox:mailstation.de on Matrix. 🫢

cute sign-off: the footer's source/version tag is SYD-AES(1), dated 1980-01-01 β€” mwah πŸ’– periodt.

πŸ“¦ where this page comes from