by rwmj · 7y ago · 0 comments
The non-encrypted transport case had a similar change but there was no measurable performance difference before and after.
I'd like to know what perf stats are available to show what's going on. (I guess it's an L2 cache effect)
Basically, just think of this as repointing your registers to a register that's always zero. Note this only appears for the value zero.
This is one of the reasons you're supposed to wipe out sensitive data with random numbers, not zeros.
Also note that your compiler may copy data to the stack whenever it wants to. So even wiping out data with random numbers may not wipe out the copied data that lives (momentarily) on the stack.
https://webcourse.cs.technion.ac.il/234267/Winter2015-2016/h...