News for hackers. Stuff that matters.
Re:FaCT: Constant Time Programming Language by rurban on Sunday October 23, 2022 @04:21PM (#33309924)
error in the paper, chapter 4.1, deferred return:

transformed code, but insecure

    secret mut uint32 rval = 0;
    secret mut bool notRet = true;
    if (sec) { rval = 1; notRet = false; }
    if (notRet) {
    // long-running computation ...
    }
    return rval;
the long running block depends on the secret, thus leaks it.
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.