Hacker News new | past | comments | ask | show | jobs | submit login

If the message is too large to buffer, one might also first just decrypt and stream the plaintext into sha-1.

Once the MDC clears, you can just decrypt again, this time writing to stdout.




This is difficult if the input is a nonseekable stream, but that doesn't excuse producing bad output.


That's why I didn't suggest it, but to be fair, you could tee the stream into an intermediate file for a two-pass scheme.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: