The first commit adds a volatile
to fix a constant-time issue in the ECDH code with GCC 13.1. The second commit adds a few more volatile
s to conditional “flag” variables.
All of these cases were missed in #1257. I haven’t looked at the entire code base, but I think this should cover most (all?) of it. All of this is of course a bit arbitrary, but I think a good rule of thumb is to use volatile
whenever we turn a secret boolean variable into a bitmask.