-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jasmin and wasi? #81
Comments
Jasmin is a fantastic project, and it could emit WebAssembly byte code, but:
Jasmin can absolutely be useful to build optimized native implementations that WebAssembly modules can call via hostcalls (WebAssembly's version of system calls). Not so much to generate WebAssembly code. I would personally rather see seamless Jasmin integration in other compilers, such as the ability to generate assembly code via Jasmin at compile time in Zig. |
Yes, I was wondering about using jasmin for native implementations. Regarding constant time, I'm sure you're aware of https://github.com/PLSysSec/ct-wasm |
WASI-crypto implementations currently use BoringSSL and OpenSSL under the hood. So, having Jasmin-produced code merged there would help a ton of existing applications, including WASI.
Specialized instruction sets such as AESNI also don't exist. Neither do basic things such as ADCX/ADOX. So, performance is never going to be as good as native implementations anyway. |
Thanks! BoringSSL already uses high assurance cryptography via fiat-cryptography |
Yep, Using Jasmin would logically be the next step to further improve performance while retaining high-assurance, and I'm really looking forward to it. RusTLS is actually using BoringSSL for all cryptographic operations. So improvements to BoringSSL will benefit to it as well. |
Jasmin is a high level assembly which compiles to both x86 and ARM.
It is popular among cryptographic engineers. It would be interesting to make jasmin available to wasm too.
Would WASI be the right vehicle to do that?
The text was updated successfully, but these errors were encountered: