-
Notifications
You must be signed in to change notification settings - Fork 25
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
symmetric_state_clone
not implemented for wasi-crypto-guest
#65
Comments
symmetric_state_clone
not implemented for symmetric_state_clone
not implemented for wasi-crypto-guest
Signed-off-by: Richard Zak <richard@profian.com>
That function was recently added to the spec, but implementations may be a little bit behind, so you need to use a previous version of the I'm going to update the Rust implementation; looks like sonder-joker will be handling this for wasmedge. |
I was going to implement |
Nice! For the rust implementation of hostcalls, I tried to implement Individual primitives are cloneable, but the generic @rjzak can you help here? |
I'm happy to take a shot! I'm reviewing https://github.com/jedisct1/witx-codegen to see how to make sense of witx to learn about the types. |
This is not really about the generated code. The current one should be fine. But making |
I'm not sure where to start since my IDE isn't able to see into anything generated from the witx files, and the witx files are lacking in data type information. |
That's the joy of Rust macros. They are write-only. |
@jedisct1 Could you submit a draft PR that I could work from? I'm not sure how to get started since it seems to all be pointers, and I'm not sure of the underlying structure. |
deleted |
Why is mutability required? Some the functions don't need to change the state, yet it seems the trait requires it.
|
That's what |
This is done. Not sure why, maybe a bug was fixed in the Rust compiler or in dependencies, but the |
proposal_symmetric.witx defines a function
symmetric_state_clone
which isn't implemented in rust/src/symmetric/low/state.rs in the binding crate. This causes compilation errors for Wasmtime when trying to use the latest wasi-crypto, which would be nice to use to leverage theP384
support and updated RustCrypto dependencies.I'd work on this myself, but I don't understand how the data types defined in the witx format translate into Rust types, or the members of the
raw::SymmetricState
object.I commended it out in the witx file for now, but otherwise it generates this error:
The text was updated successfully, but these errors were encountered: