pull down to refresh
reply
I never got far enough into C to learn about ifndef. It seems like a fairly different thing than a boolean comparison. You think someone brain farted, or an accidental fat finger?
reply
Brainfart. C macros are notoriously inscrutable. It's a really easy mistake to make and macros make the error really easy to miss and mistest. No one, and I'm sure others have audited the code, saw this until now.
I like macros, but mostly because I like inscrutable things sometimes.
reply
Great report!
reply
Block's security team posted a blog on their analysis of the exploit.
https://engineering.block.xyz/blog/predictable-rng-fallback-and-32-bit-reseed-in-coldcard-firmware