Skip to content

Repository files navigation

wasmtime-wasi-crypto-workspace

A WIP Wasmtime host implementation of wasi-crypto using the modern WIT / Component Model interface (v0.11.0).

The WIT spec is a direct, conservative translation of the WITX 0.10 spec, contributed upstream via PR #94 (currently draft). The current goal is feature parity with the existing wasi-crypto-host-functions WITX implementation before any modernizations are considered.

Status: experimental / WIP.

Build

cargo build

Test

Each test component must be compiled for wasm32-wasip2 and run via wasmtime-host:

cargo test -p wasi-crypto-common --target wasm32-wasip2
cargo test -p wasi-crypto-symmetric --target wasm32-wasip2
cargo test -p wasi-crypto-signatures --target wasm32-wasip2
cargo test -p wasi-crypto-kx --target wasm32-wasip2
cargo test -p wasi-crypto-asymmetric-common --target wasm32-wasip2

The .cargo/config.toml runner wires cargo test --target wasm32-wasip2 to wasmtime-host test automatically.

Documentation

  • docs/architecture.md: WIT→bindgen→host trait→crypto pipeline, resource lifecycle, options system
  • docs/modules.md: per-module algorithm tables, options, test coverage, known gaps

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages