3 ms·
> As long as you are using C... These things mentioned are what frustrate me with crypto implementations in pure Rust, the attempts at constant time operations
by DarthGhandi 6y ago
> As long as you are using C...
These things mentioned are what frustrate me with crypto implementations in pure Rust, the attempts at constant time operations aren't that solid and everyone is going to war with the compiler to simply get basic functionality. Replacing pointer arithmetic where it's needed with array indexing stands out the most but there's other issues.
Honestly think just using C bindings and calling it day is the best way for anything going into production.
- zenhack 6y ago> Replacing pointer arithmetic where it's needed with array indexing stands out the most but there's other issues. What situations do you run into where array indexing is not an acceptable substitute for pointer arithmetic?
- loup-vaillant 6y agoFor the record, implementing Monocypher was not one of them. I use arrays everywhere. The one borderline case I can cite is wiping memory. I go by sizeof() and access each byte.