@@ -183,8 +183,8 @@ Using esm.sh:
183
183
``` html
184
184
<!-- use a specific version -->
185
185
<script type =" module" >
186
- import * as hpke from " https://esm.sh/@hpke/[email protected] .3 " ;
187
- // import * as hpke from "https://esm.sh/[email protected] .3 ";
186
+ import * as hpke from " https://esm.sh/@hpke/[email protected] .4 " ;
187
+ // import * as hpke from "https://esm.sh/[email protected] .4 ";
188
188
// ...
189
189
</script >
190
190
@@ -201,8 +201,8 @@ Using unpkg:
201
201
``` html
202
202
<!-- use a specific version -->
203
203
<script type =" module" >
204
- import * as hpke from " https://unpkg.com/@hpke/[email protected] .3 /esm/mod.js" ;
205
- // import * as hpke from "https://unpkg.com/[email protected] .3 /esm/mod.js";
204
+ import * as hpke from " https://unpkg.com/@hpke/[email protected] .4 /esm/mod.js" ;
205
+ // import * as hpke from "https://unpkg.com/[email protected] .4 /esm/mod.js";
206
206
// ...
207
207
</script >
208
208
```
@@ -239,9 +239,9 @@ Using deno.land:
239
239
240
240
``` js
241
241
// use a specific version
242
- import * as hpke from " https://deno.land/x/[email protected] .3 /core/mod.ts" ;
243
- // import * as hpke from "https://deno.land/x/[email protected] .3 /x/dhkem-x25519/mod.ts";
244
- // import * as hpke from "https://deno.land/x/[email protected] .3 /mod.ts";
242
+ import * as hpke from " https://deno.land/x/[email protected] .4 /core/mod.ts" ;
243
+ // import * as hpke from "https://deno.land/x/[email protected] .4 /x/dhkem-x25519/mod.ts";
244
+ // import * as hpke from "https://deno.land/x/[email protected] .4 /mod.ts";
245
245
246
246
// use the latest stable version
247
247
import * as hpke from " https://deno.land/x/hpke/core/mod.ts" ;
@@ -285,8 +285,8 @@ Browsers:
285
285
<head ></head >
286
286
<body >
287
287
<script type =" module" >
288
- import { KemId , KdfId , AeadId , CipherSuite } from " https://esm.sh/@hpke/[email protected] .3 " ;
289
- // import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected] .3 ";
288
+ import { KemId , KdfId , AeadId , CipherSuite } from " https://esm.sh/@hpke/[email protected] .4 " ;
289
+ // import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected] .4 ";
290
290
291
291
globalThis .doHpke = async () => {
292
292
@@ -400,15 +400,15 @@ doHpke();
400
400
Deno:
401
401
402
402
``` js
403
- import {
KemId ,
KdfId ,
AeadId ,
CipherSuite }
from " https://deno.land/x/[email protected] .3 /core/mod.ts" ;
404
- import {
DhkemX25519HkdfSha256 }
from " https://deno.land/x/[email protected] .3 /x/dhkem-x25519/mod.ts" ;
405
- // import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected] .3 /mod.ts";
403
+ import {
KemId ,
KdfId ,
AeadId ,
CipherSuite }
from " https://deno.land/x/[email protected] .4 /core/mod.ts" ;
404
+ import {
DhkemX25519HkdfSha256 }
from " https://deno.land/x/[email protected] .4 /x/dhkem-x25519/mod.ts" ;
405
+ // import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected] .4 /mod.ts";
406
406
407
407
async function doHpke () {
408
408
// setup
409
409
const suite = new CipherSuite ({
410
410
kem: new DhkemX25519HkdfSha256 (),
411
- // If you use "https://deno.land/x/[email protected] .3 /mod.ts", you can specify it with id as follows:
411
+ // If you use "https://deno.land/x/[email protected] .4 /mod.ts", you can specify it with id as follows:
412
412
// kem: KemId.DhkemX25519HkdfSha256,
413
413
kdf: KdfId .HkdfSha256 ,
414
414
aead: AeadId .Aes128Gcm ,
0 commit comments