Re:RISC-V Stumbling Blocks
by 0xcde4c3db on Thursday January 02, 2020 @09:46AM
(#21935707)
A big part of the RISC-V story is the idea that microarchitecture decisions belong to the implementation and not the ISA specification. Specifying that multiplication must be constant-time would effectively be specifying that area-optimized cores aren't allowed to provide the multiplication instructions.
[ Parent
| on HN ]
Couldn't this be solved by having constant-time and regular multiplication instructions?
Re:RISC-V Stumbling Blocks
by justincormack on Thursday January 02, 2020 @11:04AM
(#21936482)
Arm 8.4 has a constant time flag that makes most instructions constant time, without changing the instruction set. You could definitely add this to risc-v. Or just make a constant time implementation.
Re:RISC-V Stumbling Blocks
by 0xcde4c3db on Thursday January 02, 2020 @10:33AM
(#21936175)
Sure, but the constant-time instructions would presumably be defined in an extension along with other constant-time or crypto-optimized instructions.