News for hackers. Stuff that matters.
Re:Why I've Retired My PGP Keys and What's Replaced It by sdrapkin on Tuesday March 14, 2017 @10:01AM (#13867508)
"The process for encrypting a file: (3) SHA-256 hash the shared secret to generate a 64-bit IV."

"The process for decrypting a file: (4) Validate the IV against the shared secret hash and format version."

Does anyone else see a problem with the above? I do.

Re:Why I've Retired My PGP Keys and What's Replaced It by koenigdavidmj on Tuesday March 14, 2017 @10:34AM (#13867763)
1. Isn't an IV supposed to be random, and definitely not derived from the plaintext?

2. The above comments about how crypto libraries should provide generic operations that always use the best possible cipher, like 'hash this for me', not 'SHA-256 this for me'.

Re:Why I've Retired My PGP Keys and What's Replaced It by svenfaw on Tuesday March 14, 2017 @10:22AM (#13867680)
IV seems way too short. However I'm not very familiar with Chacha20, so not sure if this is an issue.