Skip to content
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

Use WASI Streams #57

Open
npmccallum opened this issue Jun 30, 2022 · 5 comments
Open

Use WASI Streams #57

npmccallum opened this issue Jun 30, 2022 · 5 comments

Comments

@npmccallum
Copy link

WASI streams are beginning to reach a point of maturity. This standard should define how it interacts with streams (if at all).

@jedisct1
Copy link
Member

Good call.

Is there any implementation yet? Especially outside Rust?

@npmccallum
Copy link
Author

@sunfishcode ^

@sunfishcode
Copy link
Member

There is parsing support for the wit syntax in wit-bindgen, but the canonical ABI implementation is not complete yet.

@jedisct1
Copy link
Member

What we currently have for signatures and symmetric operations is something that can be directly mapped to the traditional NIST init()/update()/finalize() APIs.

But we can add update()/absorb()/squeeze() alternatives that accept a stream handle. That can indeed be useful to emulate OpenSSL BIO objects.

@jedisct1
Copy link
Member

There is parsing support for the wit syntax in wit-bindgen, but the canonical ABI implementation is not complete yet.

witx-codegen doesn't support streams either, so there is some preliminary work to do.

But if we can keep the current interface, and augment it with streams-oriented functions later, that shouldn't be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants