-
Notifications
You must be signed in to change notification settings - Fork 9
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 #238 from dajiaji/bump-to-1_0_3
Bump version up to 1.0.3.
- Loading branch information
Showing
9 changed files
with
73 additions
and
64 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 |
---|---|---|
|
@@ -183,8 +183,8 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].2"; | ||
// import * as hpke from "https://esm.sh/[email protected].2"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].3"; | ||
// import * as hpke from "https://esm.sh/[email protected].3"; | ||
// ... | ||
</script> | ||
|
||
|
@@ -201,8 +201,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
// import * as hpke from "https://unpkg.com/[email protected].2/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
// import * as hpke from "https://unpkg.com/[email protected].3/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -239,9 +239,9 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].2/x/dhkem-x25519/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].2/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].3/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -285,8 +285,8 @@ Browsers: | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].2"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].3"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -400,15 +400,15 @@ doHpke(); | |
Deno: | ||
|
||
```js | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].2/x/dhkem-x25519/mod.ts"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].2/mod.ts"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
const suite = new CipherSuite({ | ||
kem: new DhkemX25519HkdfSha256(), | ||
// If you use "https://deno.land/x/[email protected].2/mod.ts", you can specify it with id as follows: | ||
// If you use "https://deno.land/x/[email protected].3/mod.ts", you can specify it with id as follows: | ||
// kem: KemId.DhkemX25519HkdfSha256, | ||
kdf: KdfId.HkdfSha256, | ||
aead: AeadId.Aes128Gcm, | ||
|
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 |
---|---|---|
|
@@ -33,8 +33,8 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].2"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].3"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3"; | ||
</script> | ||
|
||
<!-- use the latest stable version --> | ||
|
@@ -49,8 +49,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -75,7 +75,7 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -102,8 +102,8 @@ This section shows some typical usage examples. | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
// import * as hpke from "https://esm.sh/[email protected].2"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2"; | ||
// import * as hpke from "https://esm.sh/[email protected].3"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -189,7 +189,7 @@ doHpke(); | |
### Deno | ||
|
||
```js | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@hpke/core": "^1.0.2" | ||
"@hpke/core": "^1.0.3" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@hpke/core": "^1.0.2", | ||
"@hpke/core": "^1.0.3", | ||
"ts-node": "^10.7.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -31,8 +31,8 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as chacha20 from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].3"; | ||
import * as chacha20 from "https://esm.sh/@hpke/[email protected].3"; | ||
// ... | ||
</script> | ||
|
||
|
@@ -49,8 +49,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
import * as chacha20 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -75,8 +75,8 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import * as chacha20 from "https://deno.land/x/[email protected].2/x/chacha20poly1305/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import * as chacha20 from "https://deno.land/x/[email protected].3/x/chacha20poly1305/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -104,9 +104,9 @@ This section shows some typical usage examples. | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
// import * as hpke from "https://esm.sh/[email protected].2"; | ||
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2"; | ||
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].2"; | ||
// import * as hpke from "https://esm.sh/[email protected].3"; | ||
import { KemId, KdfId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3"; | ||
import { Chacha20Poly1305 } from "https://esm.sh/@hpke/[email protected].3"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -193,8 +193,8 @@ doHpke(); | |
### Deno | ||
|
||
```js | ||
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].2/x/chacha20poly1305/mod.ts"; | ||
import { KemId, KdfId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import { Chacha20Poly1305 } from "https://deno.land/x/[email protected].3/x/chacha20poly1305/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
|
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 |
---|---|---|
|
@@ -34,8 +34,8 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].3"; | ||
import * as secp256k1 from "https://esm.sh/@hpke/[email protected].3"; | ||
// ... | ||
</script> | ||
|
||
|
@@ -52,8 +52,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
import * as secp256k1 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -78,8 +78,8 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import * as secp256k1 from "https://deno.land/x/[email protected].2/x/dhkem-secp256k1/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import * as secp256k1 from "https://deno.land/x/[email protected].3/x/dhkem-secp256k1/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -107,8 +107,8 @@ This section shows some typical usage examples. | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2"; | ||
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].2"; | ||
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3"; | ||
import { DhkemSecp256k1HkdfSha256 } from "https://esm.sh/@hpke/[email protected].3"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -195,8 +195,8 @@ doHpke(); | |
### Deno | ||
|
||
```js | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/[email protected].2/x/dhkem-secp256k1/mod.ts"; | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/[email protected].3/x/dhkem-secp256k1/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
|
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 |
---|---|---|
|
@@ -31,8 +31,8 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as x25519 from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].3"; | ||
import * as x25519 from "https://esm.sh/@hpke/[email protected].3"; | ||
// ... | ||
</script> | ||
|
||
|
@@ -49,8 +49,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as x25519 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
import * as x25519 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -75,8 +75,8 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import * as x25519 from "https://deno.land/x/[email protected].2/x/dhkem-x25519/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import * as x25519 from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -104,8 +104,8 @@ This section shows some typical usage examples. | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2"; | ||
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].2"; | ||
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3"; | ||
import { DhkemX25519HkdfSha256 } from "https://esm.sh/@hpke/[email protected].3"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -192,8 +192,8 @@ doHpke(); | |
### Deno | ||
|
||
```js | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].2/x/dhkem-x25519/mod.ts"; | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].3/x/dhkem-x25519/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
|
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 |
---|---|---|
|
@@ -31,8 +31,8 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as x448 from "https://esm.sh/@hpke/[email protected].2"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].3"; | ||
import * as x448 from "https://esm.sh/@hpke/[email protected].3"; | ||
// ... | ||
</script> | ||
|
||
|
@@ -49,8 +49,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as x448 from "https://unpkg.com/@hpke/[email protected].2/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
import * as x448 from "https://unpkg.com/@hpke/[email protected].3/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -75,8 +75,8 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import * as x448 from "https://deno.land/x/[email protected].2/x/dhkem-x448/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import * as x448 from "https://deno.land/x/[email protected].3/x/dhkem-x448/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -104,8 +104,8 @@ This section shows some typical usage examples. | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].2"; | ||
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].2"; | ||
import { KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].3"; | ||
import { DhkemX448HkdfSha512 } from "https://esm.sh/@hpke/[email protected].3"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -192,8 +192,8 @@ doHpke(); | |
### Deno | ||
|
||
```js | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].2/core/mod.ts"; | ||
import { DhkemX448HkdfSha512 } from "https://deno.land/x/[email protected].2/x/dhkem-x448/mod.ts"; | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].3/core/mod.ts"; | ||
import { DhkemX448HkdfSha512 } from "https://deno.land/x/[email protected].3/x/dhkem-x448/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
|