News for hackers. Stuff that matters.
Re:Rust Cryptography Should Be Written in Rust by IshKebab on Saturday August 26, 2023 @05:41PM (#37277175)
> all branchless code runs in constant time

No - e.g. division is not constant time.

You have to have branchless code and only use certain instructions.

E.g. here is the list for RISC-V.

https://github.com/rvkrypto/riscv-zkt-list/blob/main/zkt-lis...

Most things except div/rem, branches and floating point are ok. Oh and obviously store/load.

Re:Rust Cryptography Should Be Written in Rust by brobinson on Wednesday September 06, 2023 @04:05PM (#37410547)
Thanks, this is really interesting.