News for hackers. Stuff that matters.
Re:Hell Is Overconfident Developers Writing Encryption Code by some_furry on Saturday February 01, 2025 @06:00PM (#42903386)
> I want to roll my own variant of AES (I know, I know!) CTR mode for appendable (append-only) files that does not require a key change or reencrypting any full AES block.

https://xyproblem.info

Why, exactly, do you want to do that at all?

Re:Hell Is Overconfident Developers Writing Encryption Code by loeg on Saturday February 01, 2025 @06:02PM (#42903414)
I want the contents to be unreadable to an attacker who is able to steal a disk. I want to be able to append to files but not overwrite them in place, and do partial reads without decrypting the entire file.

(Google's AES-XCTR / HCTR2 seems somewhat similar.)

Re:Hell Is Overconfident Developers Writing Encryption Code by some_furry on Saturday February 01, 2025 @06:28PM (#42903660)
Hmm, are you familiar with NIST's workshops on accordion cipher modes?

I would talk to the people involved in that effort rather than wholesaling a design from scratch.

Re:Hell Is Overconfident Developers Writing Encryption Code by loeg on Saturday February 01, 2025 @09:51PM (#42905231)
Interesting!