Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In the specific case of crypto, maybe they are concerned about leaking information through timing if they return early? Though even if you have only one exit point, that alone does not in any way guarantee that timing differences won't occur. For that, I think the same work must be done always and only at the very end it is decided whether or not the result is valid. Something like that. So maybe they have some other reason. Maybe it's just cargo cult programming.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: