diff --git a/CHANGES.md b/CHANGES.md index 8abf2b6b9..5a388b56c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,16 @@ # Changes +## Version 1.2.3 + +Released 2023-09-09 + +- [(#282) Update devDependencies.](https://github.com/dajiaji/hpke-js/pull/282) +- [(#281) Bump @noble/ciphers to 0.3.0.](https://github.com/dajiaji/hpke-js/pull/281) +- [(#280) Bump @noble/curves to 1.2.0.](https://github.com/dajiaji/hpke-js/pull/280) +- [(#279) Bump @noble/hashes to 1.3.2.](https://github.com/dajiaji/hpke-js/pull/279) +- [(#279) Sync kyber implementation to crystals-kyber-js.](https://github.com/dajiaji/hpke-js/pull/279) +- [(#275) Add BaseError/KyberError.](https://github.com/dajiaji/hpke-js/pull/275) + ## Version 1.2.2 Released 2023-08-20 diff --git a/README.md b/README.md index 1833d8ad5..e3683cfa6 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ The hpke-js includes the following packages. - **Node.js**: 16.x, 17.x, 18.x, 19.x, 20.x - **Deno**: 1.x (1.25-) - **Cloudflare Workers** -- **bun**: 0.x (0.4.0-) +- **bun**: 0.x (0.6.0-), 1.x ## Warnings and Restrictions @@ -219,9 +219,9 @@ Using deno.land: ```js // use a specific version -import * as hpke from "https://deno.land/x/hpke@1.2.2/mod.ts"; -// import * as hpke from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; -// import * as hpke from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts"; +import * as hpke from "https://deno.land/x/hpke@1.2.3/mod.ts"; +// import * as hpke from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +// import * as hpke from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts"; // use the latest stable version import * as hpke from "https://deno.land/x/hpke/mod.ts"; @@ -239,8 +239,8 @@ Using esm.sh: ```html @@ -257,8 +257,8 @@ Using unpkg: ```html ``` @@ -338,11 +338,11 @@ try { Deno: ```js -import { AeadId, CipherSuite, KdfId, KemId } from "https://deno.land/x/hpke@1.2.2/mod.ts"; +import { AeadId, CipherSuite, KdfId, KemId } from "https://deno.land/x/hpke@1.2.3/mod.ts"; // import { // Aes128Gcm, CipherSuite, HkdfSha256, -// } from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; -// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts"; +// } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +// import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts"; async function doHpke() { // setup @@ -425,10 +425,10 @@ Browsers:
@@ -76,7 +76,7 @@ Using unpkg: ```html ``` @@ -149,7 +149,7 @@ try { ```js import { Aes128Gcm, CipherSuite, DhkemP256HkdfSha256, HkdfSha256, -} from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; +} from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; async function doHpke() { // setup @@ -194,10 +194,10 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -149,8 +149,8 @@ try { ```js import { CipherSuite, DhkemP256HkdfSha256, HkdfSha256, -} from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; -import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.2.2/x/chacha20poly1305/mod.ts"; +} from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +import { Chacha20Poly1305 } from "https://deno.land/x/hpke@1.2.3/x/chacha20poly1305/mod.ts"; async function doHpke() { // setup @@ -195,11 +195,11 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -147,8 +147,8 @@ try { ### Deno ```js -import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; -import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-secp256k1/mod.ts"; +import { Aes256Gcm, CipherSuite, HkdfSha512 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +import { DhkemSecp256k1HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-secp256k1/mod.ts"; async function doHpke() { // setup @@ -193,8 +193,8 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -147,8 +147,8 @@ try { ### Deno ```js -import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; -import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-x25519/mod.ts"; +import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +import { DhkemX25519HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x25519/mod.ts"; async function doHpke() { // setup @@ -193,8 +193,8 @@ try { @@ -81,8 +81,8 @@ Using unpkg: ```html ``` @@ -147,8 +147,8 @@ try { ### Deno ```js -import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; -import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke@1.2.2/x/dhkem-x448/mod.ts"; +import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +import { DhkemX448HkdfSha512 } from "https://deno.land/x/hpke@1.2.3/x/dhkem-x448/mod.ts"; async function doHpke() { // setup @@ -193,8 +193,8 @@ try { @@ -82,8 +82,8 @@ Using unpkg: ```html ``` @@ -148,8 +148,8 @@ try { ### Deno ```js -import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.2/core/mod.ts"; -import { HybridkemX25519Kyber768 } from "https://deno.land/x/hpke@1.2.2/x/hybridkem-x25519-kyber768/mod.ts"; +import { Aes128Gcm, CipherSuite, HkdfSha256 } from "https://deno.land/x/hpke@1.2.3/core/mod.ts"; +import { HybridkemX25519Kyber768 } from "https://deno.land/x/hpke@1.2.3/x/hybridkem-x25519-kyber768/mod.ts"; async function doHpke() { // setup @@ -194,8 +194,8 @@ try {