News for hackers. Stuff that matters.
Re:Once-starving GnuPG crypto project gets a windfall. Now c... by tptacek on Friday February 06, 2015 @04:57PM (#9011825)
libgcrypt is pretty rough, yes.

The plus side is that GnuPG by design has a relatively limited attack surface. It's tough to conduct a side-channel attack that requires thousands of message stimulus-response tests to get a single key or message bit, given that each iteration of that attack will (in typical GPG usage) require manual intervention.

As long as your crypto isn't "online", GPG is still a pretty safe bet. You can't say the same thing about a lot of newer crypto libraries.

However, if you're doing something like encrypting a session cookie, you should use Nacl, not GPG.

Re:Once-starving GnuPG crypto project gets a windfall. Now c... by peri on Friday February 06, 2015 @09:58PM (#9012890)
Not much to add here myself other than something for the folks who are less steeped in networking and security concerns: you should not try to audit this stuff yourself. Parent to this post can help you find a good auditor for your language.

It's very tempting, especially for smart, multilingual, incredibly talented individuals to just roll this as if the libraries below you don't matter. Crypto is, unfortunately, the leakiest of the leaky abstractions you can end up building on. No matter what, I always have someone else (and preferably several someone elses) check my work when it comes to authentication systems and encryption.

IANAL,EIIWTWNBFLA,UHTPMTGMROOTS. tpateck is a much better person to talk to than me if you need to find someone to help you deal with these issues most subtle.

Re:Once-starving GnuPG crypto project gets a windfall. Now c... by jessaustin on Saturday February 07, 2015 @11:15AM (#9014350)
Ok, I've got "Even If I Were This Would Not Be Free Legal Advice", but "UHTPMTGMROOTS" stymies me.
Re:Once-starving GnuPG crypto project gets a windfall. Now c... by peri on Sunday February 08, 2015 @05:52AM (#9016939)
To be honest, I'm not quite sure what I meant 18 hours later, but I think it was a joke about folks who know what my DCI number is.
Re:Once-starving GnuPG crypto project gets a windfall. Now c... by tedunangst on Friday February 06, 2015 @08:15PM (#9012633)
> each iteration of that attack will (in typical GPG usage) require manual intervention.

How long do you think that will last when everyone encrypts all their email?

Re:Once-starving GnuPG crypto project gets a windfall. Now c... by hellbanner on Friday February 06, 2015 @07:33PM (#9012503)
Can you expound on your last point?
Re:Once-starving GnuPG crypto project gets a windfall. Now c... by girvo on Friday February 06, 2015 @07:45PM (#9012548)
If you assume the rest of his comment is true (I'm no crypto expert but it seems intuitive enough for me, and he is a crypto expert!), having something like a session cookie (which can be attacker controlled) encrypted with GPG (which means it's now "online", without manual intervention) has now increased the attack surface considerably; it gives up the neat offline part of GPG and makes it easier to attack.

That's how I understood it anyway!

Re:Once-starving GnuPG crypto project gets a windfall. Now c... by tptacek on Friday February 06, 2015 @08:00PM (#9012584)
Yep.