by ancarda · 8y ago · 0 comments
The blog doesn't say much (to me) about the choice:
In addition to having no external dependencies, Microsoft SEAL
is written in standard C++, making it easy to compile in many
different environments.
Is Rust unsuitable for this project? If anyone here worked on SEAL, I'd love to learn more about this -- did the SEAL team consider using Rust?Where did you get that impression? The creators of Rust would undoubtedly love that to be the case, but Rust is still essentially in its infancy. To my knowledge there are almost no major projects released that have been built in Rust. It's ranked below such heavy hitters as Ada and Prolog for popularity on the TIOBE index[1]. It's pretty unlikely that Rust will become the standard language for everything crypo- or security-related anytime soon (or ever, but it could happen).
https://news.ycombinator.com/item?id=18545373
This includes Microsoft, which I forgot in that post, who uses it in production for their IOT product, and as part of Visual Studio Code.
That said, for crypto, there are some less than ideal things. That’s not stopping projects from working on it.
To support that...
Grin contains a phenomenal amount of cryptography: https://github.com/mimblewimble/grin
Bulletproofs implementation in rust (small proof sizes): https://github.com/dalek-cryptography/bulletproofs
...with tons of really well done cryptography by that group (dalek): https://github.com/dalek-cryptography
Pairing based crypto library used in the second largest distribution of Ethereum (and maybe zcash?): https://github.com/paritytech/bn
These libraries have prompted me to start learning rust (albeit slowly as I'm using Go and C at work).
But it is a big place, and some places do get to experiment.
Edit: I guess to make the point crystal clear since there's downvotes, "search engine popularity" is not equivalent to "appropriate tool for the job". Tiobe could equally be viewed as "which languages are hardest to use" or "which languages attract the most newcomers" both of which screw with search engine query rankings.
Probably in-house competence & interoperability: tons of language provide binding to C++ (including Microsoft .net framework). And I guess researchers at MSR have other things to do than to learn a new language for the sole purpose of having the approvement of one or two netizens.
This adds nothing of value to the conversation and only distracts from conversations worth having about encryption and practical applications, and shoots down the work that’s gone into this.
This adds nothing of value to the conversation and only distracts from conversations worth having about the question asked by the parent, and shoots down the work that’s gone into that comment.
One can prove the math is correct, but proving that in actual use it doesn't leave secrets behind in memory or leak information in timing variations requires guarantees that few (if any) languages provide.
OpenSSL is a C library.