News for hackers. Stuff that matters.
Re:How I implemented my own crypto by baby on Thursday August 03, 2017 @02:43PM (#14922464)
I did ;) surprise
Re:How I implemented my own crypto by tptacek on Thursday August 03, 2017 @03:06PM (#14922702)
What did he say? Share with the class!
Re:How I implemented my own crypto by baby on Thursday August 03, 2017 @04:28PM (#14923525)
I can't share this kind of personnal information Thomas. I'm sure you understand! I guess you'll have to take my word for it.
Re:How I implemented my own crypto by tptacek on Thursday August 03, 2017 @04:41PM (#14923663)
Ok, I'll ask Thomas Pornin myself.
Re:How I implemented my own crypto by pornin on Thursday August 03, 2017 @05:49PM (#14924233)
I indeed learned a lot, and still learn a lot, by doing implementations. Doing a proper implementation forces me to consider all aspects; when the code runs properly, I know that I have, by definition, been exposed to all the parts. You cannot get that kind of exhaustiveness from simply reading an article.

However, doing implementations is not at all the same thing as publishing implementations! The first one or two attempts are always flawed in some way; only the third one can hope to be reasonably good. I took care to properly kill and dispose of the corpses of all my learning code.

The trick (and it's a difficult one) is to decide in advance that the code you write to learn will have to be deleted -- and stick to it. Developers have trouble letting go of their creations, in general. If you can maintain that discipline, then there is no problem in "writing your own crypto". But that is a big "if".

Re:How I implemented my own crypto by tptacek on Thursday August 03, 2017 @06:49PM (#14924681)
I've found that a good motivation for writing learning-only "throwaway" crypto code is as models for writing attack code; you don't even have to throw the code away, just publish it with the exploit.

But then, I'm a believer that everyone should learn crypto by breaking it, and clearly not everyone agrees with me.

Re:How I implemented my own crypto by baby on Thursday August 03, 2017 @06:10PM (#14924402)
Thanks for the input! This reminds me of what Amelie Nothomb says: "unlike a lot of writers, I have the decency to toss most of what I write". I don't think it's necessarily bad to publish crypto code. Marketing it as secure is another thing. I've marked most of my implementations as "readable" implementations meaning that are only there for educational purposes.
Re:How I implemented my own crypto by tptacek on Friday August 04, 2017 @02:21PM (#14930727)
(rereading this, I feel like I should add: 'baby works with Thomas Pornin now.)