3 ms·
I explored the idea of making code branchless by replacing if/else with bit masking arithmetic. I did this in the context of preventing timing attacks in crypto
by nayuki 3y ago
I explored the idea of making code branchless by replacing if/else with bit masking arithmetic. I did this in the context of preventing timing attacks in cryptographic primitive algorithms. https://stackoverflow.com/questions/27865974/is-masking-effective-for-thwarting-side-channel-attacks https://stackoverflow.com/questions/27865974/is-masking-effe...