So long as I have the option to choose something else, I'm fine with this. some companies don't have a choice so a lack of support simply means rust won't be viable.
Not sure this can be done without using at least a tiny bit of unsafe since many algorithms will be slow without using CPU accelerator instructions. Other algorithms are much more efficiently implemented using vector instruction sets that usually require unsafe.
More to the point, often you need assembly to prevent the compiler from sabotaging your carefully constant-time algorithms, replacing your careful length-independent XOR loops with branches and the like.
Performance is a small part of why crypto code is often written in assembly. C is simply too high level, allowing too many optimizations.
For that matter, assembly is too high level, and Intel is adding flags to turn off some of the internal CPU optimizations:
100% on board and super happy that `ring` is finally getting some love again (and funding!)
For context: the ring repo's been a bit inactive lately and the v0.17 release looked like it stalled out. Thankfully there's been a burst of activity in the past several weeks so I'm feeling a lot better.
One of the major pain points with FIPS is how long it takes to get through the backlog to start being evaluated and validated. Lots of sitting around for a year+ twiddling fingers waiting for them to get back to you. Once they're looking at your stuff, it's a nice and fast, comprehensive and positive experience, as I understand it.
14 comments
[ 5.9 ms ] story [ 159 ms ] threadhttps://archive.ph/9WNhe
Performance is a small part of why crypto code is often written in assembly. C is simply too high level, allowing too many optimizations.
For that matter, assembly is too high level, and Intel is adding flags to turn off some of the internal CPU optimizations:
https://www.intel.com/content/www/us/en/developer/articles/t...
For context: the ring repo's been a bit inactive lately and the v0.17 release looked like it stalled out. Thankfully there's been a burst of activity in the past several weeks so I'm feeling a lot better.