Skip to content

Commit 04309b5

Browse files
committed
Deploy to DSR.
1 parent 1f9b55e commit 04309b5

File tree

20 files changed

+45
-21
lines changed

20 files changed

+45
-21
lines changed

core/deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"name": "@hpke/core",
3+
"version": "1.2.9",
4+
"exports": "./mod.ts",
25
"imports": {
36
"@deno/dnt": "jsr:@deno/dnt@^0.41.2",
47
"@std/assert": "jsr:@std/[email protected]",

core/test/runtimes/browsers/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// playwright.config.ts
2-
import { devices, PlaywrightTestConfig } from "@playwright/test";
2+
import { devices } from "@playwright/test";
3+
import type { PlaywrightTestConfig } from "@playwright/test";
34

45
const config: PlaywrightTestConfig = {
56
projects: [

deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"name": "@dajiaji/hpke",
3+
"version": "1.2.9",
4+
"exports": "./mod.ts",
25
"imports": {
36
"@deno/dnt": "jsr:@deno/dnt@^0.41.2",
47
"@std/assert": "jsr:@std/[email protected]",

src/cipherSuiteNative.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,21 @@ export class CipherSuiteNative extends NativeAlgorithm {
159159
/**
160160
* Gets the KEM context of the ciphersuite.
161161
*/
162-
public get kem() {
162+
public get kem(): KemInterface {
163163
return this._kem;
164164
}
165165

166166
/**
167167
* Gets the KDF context of the ciphersuite.
168168
*/
169-
public get kdf() {
169+
public get kdf(): KdfInterface {
170170
return this._kdf;
171171
}
172172

173173
/**
174174
* Gets the AEAD context of the ciphersuite.
175175
*/
176-
public get aead() {
176+
public get aead(): AeadInterface {
177177
return this._aead;
178178
}
179179

src/interfaces/aeadInterface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { AeadEncryptionContext } from "./aeadEncryptionContext.ts";
22

3-
import { AeadId } from "../identifiers.ts";
3+
import type { AeadId } from "../identifiers.ts";
44

55
/**
66
* The AEAD interface.

src/interfaces/kdfInterface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { KdfId } from "../identifiers.ts";
1+
import type { KdfId } from "../identifiers.ts";
22

33
/**
44
* The KDF interface.

src/interfaces/kemInterface.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { RecipientContextParams } from "./recipientContextParams.ts";
22
import type { SenderContextParams } from "./senderContextParams.ts";
3-
4-
import { KemId } from "../identifiers.ts";
3+
import type { KemId } from "../identifiers.ts";
54

65
// b"KEM"
76
export const SUITE_ID_HEADER_KEM = new Uint8Array([75, 69, 77, 0, 0]);

src/kems/dhkem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { KdfInterface } from "../interfaces/kdfInterface.ts";
2+
import type { KemId } from "../identifiers.ts";
23
import type { KemInterface } from "../interfaces/kemInterface.ts";
34
import type { DhkemPrimitives } from "../interfaces/dhkemPrimitives.ts";
45
import type { SenderContextParams } from "../interfaces/senderContextParams.ts";
56
import type { RecipientContextParams } from "../interfaces/recipientContextParams.ts";
67

78
import { EMPTY, INPUT_LENGTH_LIMIT } from "../consts.ts";
89
import { DecapError, EncapError, InvalidParamError } from "../errors.ts";
9-
import { KemId } from "../identifiers.ts";
1010
import { SUITE_ID_HEADER_KEM } from "../interfaces/kemInterface.ts";
1111
import { concat, i2Osp, isCryptoKeyPair } from "../utils/misc.ts";
1212

test/runtimes/browsers/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// playwright.config.ts
2-
import { devices, PlaywrightTestConfig } from "@playwright/test";
2+
import { devices } from "@playwright/test";
3+
import type { PlaywrightTestConfig } from "@playwright/test";
34

45
const config: PlaywrightTestConfig = {
56
projects: [

x/chacha20poly1305/deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"name": "@hpke/chacha20poly1305",
3+
"version": "1.2.9",
4+
"exports": "./mod.ts",
25
"imports": {
36
"@deno/dnt": "jsr:@deno/dnt@^0.41.2",
47
"@std/assert": "jsr:@std/[email protected]",

0 commit comments

Comments
 (0)