Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed May 10, 2024
1 parent a547046 commit 966dd79
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 29 deletions.
14 changes: 0 additions & 14 deletions docs/functions/generateKeypairJwk.html

This file was deleted.

2 changes: 1 addition & 1 deletion docs/functions/generateKeypairPEM.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ <h4>Description</h4><p>This function generates a RFC 7517 JSON Web Key (JWK) RSA
or EC key pair by W3C Web Crypto API.</p>
<h4>Example</h4><pre><code class="language-ts"><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">generateKeyPairPEM</span><span class="hl-1">(</span><span class="hl-3">&quot;RSA&quot;</span><span class="hl-1">) -&gt;</span><br/><span class="hl-1">[</span><span class="hl-3">&quot;-----BEGIN PRIVATE...&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;-----BEGIN PUBLIC...&quot;</span><span class="hl-1">] </span><span class="hl-5">// RSA 2048bit and &quot;010001&quot; public exponent</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">generateKeyPairPEM</span><span class="hl-1">(</span><span class="hl-3">&quot;RSA&quot;</span><span class="hl-1">, </span><span class="hl-6">4096</span><span class="hl-1">, </span><span class="hl-3">&quot;0101&quot;</span><span class="hl-1">) -&gt;</span><br/><span class="hl-1">[</span><span class="hl-3">&quot;-----BEGIN PRIVATE...&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;-----BEGIN PUBLIC...&quot;</span><span class="hl-1">] </span><span class="hl-5">// RSA 4096bit and &quot;0101&quot; public exponent</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">generateKeyPairPEM</span><span class="hl-1">(</span><span class="hl-3">&quot;EC&quot;</span><span class="hl-1">) -&gt;</span><br/><span class="hl-1">[</span><span class="hl-3">&quot;-----BEGIN PRIVATE...&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;-----BEGIN PUBLIC...&quot;</span><span class="hl-1">] </span><span class="hl-5">// P-256 as default</span><br/><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">generateKeyPairPEM</span><span class="hl-1">(</span><span class="hl-3">&quot;EC&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;P-521&quot;</span><span class="hl-1">) -&gt;</span><br/><span class="hl-1">[</span><span class="hl-3">&quot;-----BEGIN PRIVATE...&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;-----BEGIN PUBLIC...&quot;</span><span class="hl-1">] </span><span class="hl-5">// P-521</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/kjur/typepki-webcrypto/blob/c1814865d707e526f4fa4181474d3fb5039d0c15/src/index.mts#L394">index.mts:394</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>typepki-webcrypto - v0.2.0</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/kjur/typepki-webcrypto/blob/a547046c69e92867d840929cee88f6feac2eaba5/src/index.mts#L394">index.mts:394</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>typepki-webcrypto - v0.2.0</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
Loading

0 comments on commit 966dd79

Please sign in to comment.