Subject: Re: nncp-file 7.0.0 broken with stdin

From: Sergey Matveev <[email-masked]>
Date: Sat, 3 Jul 2021 18:49:45 +0300

Greetings!

*** John Goerzen [2021-07-03 09:46]:
> 2021-07-03T14:44:31Z ERROR File - (3 B) sent to bakfs:foo: chacha20poly1305:
> message authentication failed
> main.go:135: chacha20poly1305: message authentication failed

There was slight optimization of encryption function... that lead to the
error (nonce was updated by encryption function inplace, and decryption
code does not nullify it before the start). Thanks for the report! Fix
will be in the next release, already going to happen tomorrow

> Also, nncp-exec with -use-tmp appears to work but silently just doesn't send
> anything (returns exit code 0).  It seems there's something busted with both
> of these in stdin mode.

Thanks for the report. Silly error with variable shadowing.

I will definitely will start writing functional tests, calling the real
commands and testing that massive pile of possible options and cases. It
is a shame that I have not started them writing before of course. But in
the next release there is a very new functionality, bringing even more
complex use-cases and corner-cases.

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF