-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from yoshuawuyts/v0.2.2
Update to v0.2.2
- Loading branch information
Showing
6 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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<<code>u8</code>></li> | ||
<li><a id="get_random_bytes.0"></a> list<<code>u8</code>></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> | ||
|
@@ -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<<code>u8</code>></li> | ||
<li><a id="get_insecure_random_bytes.0"></a> list<<code>u8</code>></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 | ||
|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package wasi:random@0.2.1; | ||
package wasi:random@0.2.2; | ||
|
||
@since(version = 0.2.0) | ||
world imports { | ||
|