FaCT is an open source programming language created in 2017 by Deian Stefan.
git clone https://github.com/PLSysSec/FaCT
#980on PLDB | 7Years Old |
Flexible and Constant Time Programming Language
void
swap_conditional(secret mut uint64[5] a, secret mut uint64[5] b, secret uint64 swapi) {
if (swapi == 1) {
for (uint32 i from 0 to 5) {
secret uint64 x = a[i];
a[i] = b[i];
b[i] = x;
}
}
}