I am working on an attack that involves changing a constant inside a loop. Consider the simplified example is as below,
For i=1 to n : j=constant; for i=1 to n': Use J here . . exit for; exit for;
In my case, I don't want to j to get the correct value of constant.
If n is between 60 to 80, how feasible is to mount a fault attack such that j gets 0 (or other small value) instead of the constant?
If it is not possible to do it for all iterations, can I make this happen for some iterations? For simplicity, let's assume that all the compiler optimizations are turned off. Or the code is written in assembly to remove any interference from the compiler.
Please let me know if something is not clear or you need more information. Thanks in advance. :-)
EDIT 1: the Constant is not ZERO. But rather a 32 bit value.
EDIT 2: The platform is a microcontroller. Let's say, Cortex-M0 or Cortex-M4