News for hackers. Stuff that matters.
Re:A few comments on ‘age’ by noelwelsh on Tuesday December 31, 2019 @04:58AM (#21919995)
The real issue with gpg / pgp is the terrible UX. If this new tool doesn't address that it isn't much use.
Re:A few comments on ‘age’ by eximius on Tuesday December 31, 2019 @10:38AM (#21921662)
That's not true. It also has old, deprecated crypto. It still works, but it has problems, and not all installations support the same things. I am not well versed enough to regurgitate what other cryptographers here and elsewhere have said about it, but there are lots of problems.
Re:A few comments on ‘age’ by upofadown on Tuesday December 31, 2019 @12:47PM (#21922872)
> It also has old, deprecated crypto.

That entirely works.Any sort of realistic crypto standard is going to have to support older systems right up to the point where any problems with those systems actually reduce security in some way. To do otherwise would be irresponsible to your users.

Re:A few comments on ‘age’ by eliaspro on Tuesday December 31, 2019 @05:40AM (#21920137)
It's not meant to really replace GnuPG. It doesn't sign, it does not handle trust - it simply encrypts/decrypts.
Re:A few comments on ‘age’ by upofadown on Tuesday December 31, 2019 @08:25AM (#21920832)
The gpg/gpg2 UX is pretty simple for this use case of just encrypting files, particularly if you are doing symmetrical.
Re:A few comments on ‘age’ by bscphil on Tuesday December 31, 2019 @12:35PM (#21922764)
IMO the criticisms here make more sense if you also read the author's article series "Public key authenticated encryption and why you want it".

https://neilmadden.blog/2018/11/14/public-key-authenticated-...

Re:A few comments on ‘age’ by FiloSottile on Tuesday December 31, 2019 @06:05AM (#21920224)
Happy to see discussion of the age design. I replied on the age-dev mailing list.

https://groups.google.com/d/msgid/age-dev/505e74e5-1385-4055...

tl;dr: we seem to disagree on what users should want from age—confidentiality or also authentication—and that would lead not only to different design choices, but to drastically different UXs.

Re:A few comments on ‘age’ by Terretta on Wednesday January 01, 2020 @09:40AM (#21928187)
I had a diff tl;dr:

> ”Unfortunately, the age spec doesn’t document its threat model or the security goals it is intended to achieve ... Most importantly, the spec should define its security goals.”

Re:A few comments on ‘age’ by geoah on Tuesday December 31, 2019 @05:02AM (#21920007)
I'm wondering if this feedback has been shared with age's author. To me at least is seems like a better place for this would be age's github issues instead of the author's blog.
Re:A few comments on ‘age’ by nabla9 on Tuesday December 31, 2019 @10:08AM (#21921424)
Re:A few comments on ‘age’ by ChrisGranger on Tuesday December 31, 2019 @05:12AM (#21920041)
I saw these comments on age's GitHub page before seeing this post on HN, so not to worry.

https://github.com/FiloSottile/age/issues/59

Re:A few comments on ‘age’ by nmadden on Tuesday December 31, 2019 @05:57AM (#21920195)
Yes, I raised an issue on github. But I think there are general points raised that are more widely applicable than just to age.
Re:A few comments on ‘age’ by AgentME on Tuesday December 31, 2019 @03:48PM (#21924603)
I have a lot of trouble understanding the issue in the comparison with JOSE. The problem with JOSE's header was that many libraries offered an API that was "validate that this is a valid token using one of these keys", but a key was just one part of the unauthenticated header. An attacker could create a token that used one of the keys with an algorithm it didn't belong to and create a token that was signed by one of the whitelisted keys in a wrong algorithm. The solution was to make sure all the libraries had the API where the user whitelisted allowed values of the entire header: "validate that this is a valid token using one of these headers (alg+key)".

I'm not sure what the corresponding version of the first issue would be in age, and then why the answer wouldn't be for age to make sure to check the entire header against a whitelist instead of considering just a subset of it.

Re:A few comments on ‘age’ by nmadden on Wednesday January 01, 2020 @11:04AM (#21928569)
I updated the blog post, I had misunderstood that part of the age spec.
Re:A few comments on ‘age’ by AgentME on Tuesday December 31, 2019 @03:39PM (#21924543)
>or I need to define my own chunked streaming signature verification tool and combine that with age (and hope the chunk sizes line up).

Wouldn't you just need a tool that only outputs chunks after they're verified, and then you pipe that tool's output to age?

I'm not sure that signify or minisign currently support this streaming operation though.

Re:A few comments on ‘age’ by nmadden on Wednesday January 01, 2020 @10:44AM (#21928432)
Yes, but no such tool exists (yet) as far as I’m aware. You also need to tie the chunks together so that they cannot be rearranged, duplicated, or deleted.

You also need to be careful about what you think this tells you. For example, suppose you ran a competition where the winner is the first person to upload an encrypted+signed correct answer to a shared folder. An attacker can wait for somebody to upload the winning answer and then simply strip the real winner’s signature off and sign the encrypted blob (which they can’t decrypt) with their own private key - hurray, the attacker has now won the prize!

If you reverse the order of signing and encryption you can run into bugs like [1].

You can securely combine public key encryption and signatures by including extra metadata fields inside each layer. Or you can use a function that provides public key authenticated encryption like NaCl’s crypto_box or the mode I’ve proposed for JOSE [2].

[1]: https://groups.google.com/forum/m/#!msg/sci.crypt/73yb5a9pz2... [2]: https://tools.ietf.org/html/draft-madden-jose-ecdh-1pu-02

Edit: clarify ambiguous use of “their”

Re:A few comments on ‘age’ by zeroimpl on Tuesday December 31, 2019 @09:23PM (#21926242)
As a user, if I have a key and an encrypted file, aside from actually decrypting the file, all I care about is ensuring that the software can confirm that the encrypted file was encrypted using the same key. Why should this be complicated?
Re:A few comments on ‘age’ by nmadden on Wednesday January 01, 2020 @10:29AM (#21928360)
If this is all you need use age with a password/passphrase (scrypt). It does exactly what you want.