|
|
|
|
|
by sneak
2304 days ago
|
|
More troubling to me than the closed source firmware is that the bug in TFA seems like something that the most basic of a test suite should be catching. It’s reminiscent of Apple’s “goto fail” lack of certificate checking - another easily testable case that simply wasn’t. The test authors don’t even need to be on the same team/manager. They can just write black box tests to the spec, like the author of this post did. I’m not even some big TDD guy. It just seems to me that in these core security-critical libraries/functions that should be pretty side-effect-free that you should have some basic “receive x, produce y” functional tests to make sure the API is doing what it claims to do on the tin. |
|
A most basic test suite is not likely to wait some arbitrary amount of time (2 seconds, as the author found by trial and error) between calls to the HSM.