Comment on Elliptic curve arithmetic and cryptography library in RustparentComments−bascule11yRust has an asm! macro. You can implement the constant time operations in assembly.Here's a syntax extension that tries to use black magic to turn a subset of Rust code into corresponding asm! macros:https://github.com/klutzy/nadeko/blob/tmp/tests/rot13.rsNote it presently has no support for loops whatsoever.−e12e11yNote it presently has no support for loops whatsoever.Could you comment on why? Is it perhaps necessary to save/restore ECX [edit: I meant RCX for 64bit] between procedure/function calls/rets?−bascule11yIt's because nadeko is a young project and it hasn't been implemented yet. Coming soon!
Comments
Rust has an asm! macro. You can implement the constant time operations in assembly.
Here's a syntax extension that tries to use black magic to turn a subset of Rust code into corresponding asm! macros:
https://github.com/klutzy/nadeko/blob/tmp/tests/rot13.rs
Note it presently has no support for loops whatsoever.
Could you comment on why? Is it perhaps necessary to save/restore ECX [edit: I meant RCX for 64bit] between procedure/function calls/rets?
It's because nadeko is a young project and it hasn't been implemented yet. Coming soon!