-
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 #226 from dajiaji/bump-to-1_0_1
Bump version up to 1.0.1.
- Loading branch information
Showing
20 changed files
with
133 additions
and
129 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
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ This module works on web browsers, Node.js, Deno and various other JavaScript ru | |
|
||
<div align="center"> | ||
|
||
[Documentation](https://doc.deno.land/https://deno.land/x/hpke/mod.ts) | ||
[Doc(deno.land)](https://doc.deno.land/https://deno.land/x/hpke/mod.ts)/[Doc(pages, only for the latest version)](https://dajiaji.github.io/hpke-js/docs/) | ||
|
||
</div> | ||
|
||
|
@@ -181,8 +181,8 @@ Using esm.sh: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].0"; | ||
// import * as hpke from "https://esm.sh/[email protected].0"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].1"; | ||
// import * as hpke from "https://esm.sh/[email protected].1"; | ||
// ... | ||
</script> | ||
|
||
|
@@ -199,8 +199,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js"; | ||
// import * as hpke from "https://unpkg.com/[email protected].0/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js"; | ||
// import * as hpke from "https://unpkg.com/[email protected].1/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -237,9 +237,9 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].0/core/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].0/x/dhkem-x25519/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].1/core/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].1/x/dhkem-x25519/mod.ts"; | ||
// import * as hpke from "https://deno.land/x/[email protected].1/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -283,8 +283,8 @@ Browsers: | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].0"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].0"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/[email protected].1"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -398,15 +398,15 @@ doHpke(); | |
Deno: | ||
|
||
```js | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].0/core/mod.ts"; | ||
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].0/x/dhkem-x25519/mod.ts"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].0/mod.ts"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/core/mod.ts"; | ||
import { DhkemX25519HkdfSha256 } from "https://deno.land/x/[email protected].1/x/dhkem-x25519/mod.ts"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
const suite = new CipherSuite({ | ||
kem: new DhkemX25519HkdfSha256(), | ||
// If you use "https://deno.land/x/[email protected].0/mod.ts", you can specify it with id as follows: | ||
// If you use "https://deno.land/x/[email protected].1/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 |
---|---|---|
|
@@ -6,7 +6,7 @@ A TypeScript <a href="https://datatracker.ietf.org/doc/html/rfc9180">Hybrid Publ | |
|
||
<div align="center"> | ||
|
||
[Documentation](https://doc.deno.land/https://deno.land/x/hpke/core/mod.ts) | ||
[Doc(deno.land)](https://doc.deno.land/https://deno.land/x/hpke/core/mod.ts)/[Doc(pages, only latest)](https://dajiaji.github.io/hpke-js/core/docs/) | ||
|
||
</div> | ||
|
||
|
@@ -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].0"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].0"; | ||
import * as hpke from "https://esm.sh/@hpke/[email protected].1"; | ||
// import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1"; | ||
</script> | ||
|
||
<!-- use the latest stable version --> | ||
|
@@ -47,8 +47,8 @@ Using unpkg: | |
```html | ||
<!-- use a specific version --> | ||
<script type="module"> | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js"; | ||
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].0/esm/mod.js"; | ||
import * as hpke from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js"; | ||
import { KemId, KdfId, AeadId, CipherSuite} from "https://unpkg.com/@hpke/[email protected].1/esm/mod.js"; | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -73,7 +73,7 @@ Using deno.land: | |
|
||
```js | ||
// use a specific version | ||
import * as hpke from "https://deno.land/x/[email protected].0/core/mod.ts"; | ||
import * as hpke from "https://deno.land/x/[email protected].1/core/mod.ts"; | ||
|
||
// use the latest stable version | ||
import * as hpke from "https://deno.land/x/hpke/core/mod.ts"; | ||
|
@@ -100,8 +100,8 @@ This section shows some typical usage examples. | |
<head></head> | ||
<body> | ||
<script type="module"> | ||
// import * as hpke from "https://esm.sh/[email protected].0"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].0"; | ||
// import * as hpke from "https://esm.sh/[email protected].1"; | ||
import { KemId, KdfId, AeadId, CipherSuite } from "https://esm.sh/@hpke/[email protected].1"; | ||
globalThis.doHpke = async () => { | ||
|
@@ -187,7 +187,7 @@ doHpke(); | |
### Deno | ||
|
||
```js | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].0/core/mod.ts"; | ||
import { KdfId, AeadId, CipherSuite } from "https://deno.land/x/[email protected].1/core/mod.ts"; | ||
|
||
async function doHpke() { | ||
// setup | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,19 +1,19 @@ | ||
import { CipherSuiteNative } from "../../src/cipherSuiteNative.ts"; | ||
import { | ||
DhkemP256HkdfSha256Native, | ||
DhkemP384HkdfSha384Native, | ||
DhkemP521HkdfSha512Native, | ||
} from "../../src/kems/dhkemNative.ts"; | ||
import { | ||
HkdfSha256Native, | ||
HkdfSha384Native, | ||
HkdfSha512Native, | ||
} from "../../src/kdfs/hkdf.ts"; | ||
// import { | ||
// DhkemP256HkdfSha256Native, | ||
// DhkemP384HkdfSha384Native, | ||
// DhkemP521HkdfSha512Native, | ||
// } from "../../src/kems/dhkemNative.ts"; | ||
// import { | ||
// HkdfSha256Native, | ||
// HkdfSha384Native, | ||
// HkdfSha512Native, | ||
// } from "../../src/kdfs/hkdf.ts"; | ||
|
||
export class CipherSuite extends CipherSuiteNative {} | ||
export class DhkemP256HkdfSha256 extends DhkemP256HkdfSha256Native {} | ||
export class DhkemP384HkdfSha384 extends DhkemP384HkdfSha384Native {} | ||
export class DhkemP521HkdfSha512 extends DhkemP521HkdfSha512Native {} | ||
export class HkdfSha256 extends HkdfSha256Native {} | ||
export class HkdfSha384 extends HkdfSha384Native {} | ||
export class HkdfSha512 extends HkdfSha512Native {} | ||
// export class DhkemP256HkdfSha256 extends DhkemP256HkdfSha256Native {} | ||
// export class DhkemP384HkdfSha384 extends DhkemP384HkdfSha384Native {} | ||
// export class DhkemP521HkdfSha512 extends DhkemP521HkdfSha512Native {} | ||
// export class HkdfSha256 extends HkdfSha256Native {} | ||
// export class HkdfSha384 extends HkdfSha384Native {} | ||
// export class HkdfSha512 extends HkdfSha512Native {} |
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
"author": "Ajitomi Daisuke <[email protected]> (https://github.com/dajiaji)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@hpke/core": "^0.22.0" | ||
"@hpke/core": "^1.0.1" | ||
} | ||
} |
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": "^0.22.0", | ||
"@hpke/core": "^1.0.1", | ||
"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
Oops, something went wrong.