WebAssembly / wasi-crypto

WASI Cryptography API Proposal
162 stars 25 forks source link

Provide guest key exchange call. #72

Closed sonder-joker closed 1 year 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 1 year 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 1 year ago

Thanks!

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