Re:FaCT: Constant Time Programming Language
by djrenren on Sunday October 23, 2022 @04:46PM
(#33310121)
Hey, one of the paper authors here. If the compiler stopped here, yes this would be an error, but subsequent transformations (described in section 4.2) eliminate the branch ensuring that timing is equivalent regardless of the value of notRet.
transformed code, but insecure
the long running block depends on the secret, thus leaks it.