Skip to content

Comment on Elliptic curve arithmetic and cryptography library in Rustparent

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.

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!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.