Open MauroToscano opened 10 months ago
I think it would require a new backend so LLVM doesn't break stuff behind our back. Or at least an extra late stage checking the asm?
Checking the ASM of a function is really needed. It's the only way to verify everything is alright, even if everything is supposed to be working as intended.
I meant an automated one. Even if you need to manually check the output (and all compilers should be able to dump the asm anyway), early failures save you time.
Let's port https://github.com/dalek-cryptography/subtle/blob/main/src/lib.rs and put it in the stdlib
Some functions should be constant time for cryptography to hold.
This is the minimal amount of work we would need to have some some secure cryptrography:
This would be nice to have in a later version: