WebAssembly / wasi-crypto

WASI Cryptography API Proposal
164 stars 25 forks source link

Provide guest key exchange call. #72

Closed sonder-joker closed 2 years ago

sonder-joker commented 2 years ago

Provide lowlevel call for key exchange.

tarcieri commented 2 years ago

Is there a spec for this? Raw D-H is ok but you might also consider providing a KEM interface.

We have RustCrypto traits for that: https://docs.rs/kem/

sonder-joker commented 2 years ago

Is there a spec for this? Raw D-H is ok but you might also consider providing a KEM interface.

We have RustCrypto traits for that: https://docs.rs/kem/

I add a low level interface for it. It work like here say. We can also provide a non Vec api if someone need it. I will also provide high level api and a rust-crypto wrapper (first for unit test) later.

jedisct1 commented 2 years ago

Thanks!

Having this for the AssemblyScript version would be nice, too.