3 ms·
Why do you need asm! for it? .s files exist, and as far as I understand, are easy to link to.
by ori_b 11y ago
Why do you need asm! for it? .s files exist, and as far as I understand, are easy to link to.
- masklinn 11y agoI'm not sure composition would work so you'd have to code every constant-time function entirely in assembler. And now I wonder why there isn't already such a project, surely the number of necessarily constant-time functions is relatively low? Constant-time equality (of byte sequences), constant time conditional (`a if b else c`), constant-time comparison (<=) and maybe constant-time bytes copy?