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

Update to v0.2.2 #47

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: WebAssembly/wit-abi-up-to-date@v21
- uses: WebAssembly/wit-abi-up-to-date@v22
with:
wit-bindgen: '0.28.0'
wit-bindgen: '0.33.0'
38 changes: 19 additions & 19 deletions imports.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<h1><a name="imports">World imports</a></h1>
<h1><a id="imports"></a>World imports</h1>
<ul>
<li>Imports:
<ul>
<li>interface <a href="#wasi_random_random_0_2_1"><code>wasi:random/[email protected].1</code></a></li>
<li>interface <a href="#wasi_random_insecure_0_2_1"><code>wasi:random/[email protected].1</code></a></li>
<li>interface <a href="#wasi_random_insecure_seed_0_2_1"><code>wasi:random/[email protected].1</code></a></li>
<li>interface <a href="#wasi_random_random_0_2_2"><code>wasi:random/[email protected].2</code></a></li>
<li>interface <a href="#wasi_random_insecure_0_2_2"><code>wasi:random/[email protected].2</code></a></li>
<li>interface <a href="#wasi_random_insecure_seed_0_2_2"><code>wasi:random/[email protected].2</code></a></li>
</ul>
</li>
</ul>
<h2><a name="wasi_random_random_0_2_1"></a>Import interface wasi:random/[email protected].1</h2>
<h2><a id="wasi_random_random_0_2_2"></a>Import interface wasi:random/[email protected].2</h2>
<p>WASI Random is a random data API.</p>
<p>It is intended to be portable at least between Unix-family platforms and
Windows.</p>
<hr />
<h3>Functions</h3>
<h4><a name="get_random_bytes"></a><code>get-random-bytes: func</code></h4>
<h4><a id="get_random_bytes"></a><code>get-random-bytes: func</code></h4>
<p>Return <code>len</code> cryptographically-secure random or pseudo-random bytes.</p>
<p>This function must produce data at least as cryptographically secure and
fast as an adequately seeded cryptographically-secure pseudo-random
Expand All @@ -27,27 +27,27 @@ must omit this function, rather than implementing it with deterministic
data.</p>
<h5>Params</h5>
<ul>
<li><a name="get_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
<li><a id="get_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
</ul>
<h5>Return values</h5>
<ul>
<li><a name="get_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
<li><a id="get_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
</ul>
<h4><a name="get_random_u64"></a><code>get-random-u64: func</code></h4>
<h4><a id="get_random_u64"></a><code>get-random-u64: func</code></h4>
<p>Return a cryptographically-secure random or pseudo-random <code>u64</code> value.</p>
<p>This function returns the same type of data as <a href="#get_random_bytes"><code>get-random-bytes</code></a>,
represented as a <code>u64</code>.</p>
<h5>Return values</h5>
<ul>
<li><a name="get_random_u64.0"></a> <code>u64</code></li>
<li><a id="get_random_u64.0"></a> <code>u64</code></li>
</ul>
<h2><a name="wasi_random_insecure_0_2_1"></a>Import interface wasi:random/[email protected].1</h2>
<h2><a id="wasi_random_insecure_0_2_2"></a>Import interface wasi:random/[email protected].2</h2>
<p>The insecure interface for insecure pseudo-random numbers.</p>
<p>It is intended to be portable at least between Unix-family platforms and
Windows.</p>
<hr />
<h3>Functions</h3>
<h4><a name="get_insecure_random_bytes"></a><code>get-insecure-random-bytes: func</code></h4>
<h4><a id="get_insecure_random_bytes"></a><code>get-insecure-random-bytes: func</code></h4>
<p>Return <code>len</code> insecure pseudo-random bytes.</p>
<p>This function is not cryptographically secure. Do not use it for
anything related to security.</p>
Expand All @@ -56,27 +56,27 @@ implementations are encouraged to return evenly distributed values with
a long period.</p>
<h5>Params</h5>
<ul>
<li><a name="get_insecure_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
<li><a id="get_insecure_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
</ul>
<h5>Return values</h5>
<ul>
<li><a name="get_insecure_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
<li><a id="get_insecure_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
</ul>
<h4><a name="get_insecure_random_u64"></a><code>get-insecure-random-u64: func</code></h4>
<h4><a id="get_insecure_random_u64"></a><code>get-insecure-random-u64: func</code></h4>
<p>Return an insecure pseudo-random <code>u64</code> value.</p>
<p>This function returns the same type of pseudo-random data as
<a href="#get_insecure_random_bytes"><code>get-insecure-random-bytes</code></a>, represented as a <code>u64</code>.</p>
<h5>Return values</h5>
<ul>
<li><a name="get_insecure_random_u64.0"></a> <code>u64</code></li>
<li><a id="get_insecure_random_u64.0"></a> <code>u64</code></li>
</ul>
<h2><a name="wasi_random_insecure_seed_0_2_1"></a>Import interface wasi:random/[email protected].1</h2>
<h2><a id="wasi_random_insecure_seed_0_2_2"></a>Import interface wasi:random/[email protected].2</h2>
<p>The insecure-seed interface for seeding hash-map DoS resistance.</p>
<p>It is intended to be portable at least between Unix-family platforms and
Windows.</p>
<hr />
<h3>Functions</h3>
<h4><a name="insecure_seed"></a><code>insecure-seed: func</code></h4>
<h4><a id="insecure_seed"></a><code>insecure-seed: func</code></h4>
<p>Return a 128-bit value that may contain a pseudo-random value.</p>
<p>The returned value is not required to be computed from a CSPRNG, and may
even be entirely deterministic. Host implementations are encouraged to
Expand All @@ -92,5 +92,5 @@ called multiple times and potentially used for purposes other than DoS
protection.</p>
<h5>Return values</h5>
<ul>
<li><a name="insecure_seed.0"></a> (<code>u64</code>, <code>u64</code>)</li>
<li><a id="insecure_seed.0"></a> (<code>u64</code>, <code>u64</code>)</li>
</ul>
2 changes: 1 addition & 1 deletion wit/insecure-seed.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected].1;
package wasi:[email protected].2;
/// The insecure-seed interface for seeding hash-map DoS resistance.
///
/// It is intended to be portable at least between Unix-family platforms and
Expand Down
2 changes: 1 addition & 1 deletion wit/insecure.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected].1;
package wasi:[email protected].2;
/// The insecure interface for insecure pseudo-random numbers.
///
/// It is intended to be portable at least between Unix-family platforms and
Expand Down
2 changes: 1 addition & 1 deletion wit/random.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected].1;
package wasi:[email protected].2;
/// WASI Random is a random data API.
///
/// It is intended to be portable at least between Unix-family platforms and
Expand Down
2 changes: 1 addition & 1 deletion wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected].1;
package wasi:[email protected].2;

@since(version = 0.2.0)
world imports {
Expand Down