Skip to content

Commit 738254a

Browse files
committed
hpke-js: use hmac/sha2 in hpke/common.
1 parent aa357e9 commit 738254a

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

packages/hpke-js/deno.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"name": "@hpke/hpke-js",
33
"version": "1.6.3",
44
"exports": "./mod.ts",
5-
"imports": {
6-
"@noble/hashes": "npm:@noble/hashes@^1.8.0"
7-
},
85
"publish": {
96
"exclude": [
107
"dnt.ts",

packages/hpke-js/src/kdfs/hkdfSha384.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import { hmac } from "@noble/hashes/hmac";
2-
import { sha384 } from "@noble/hashes/sha512";
3-
4-
import { HkdfSha384Native } from "@hpke/common";
1+
import { HkdfSha384Native, hmac, sha384 } from "@hpke/common";
52

63
export class HkdfSha384 extends HkdfSha384Native {
74
public override async extract(

packages/hpke-js/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"@hpke/core": ["../core/mod.ts"],
88
"@hpke/chacha20poly1305": ["../chacha20poly1305/mod.ts"],
99
"@hpke/dhkem-x25519": ["../dhkem-x25519/mod.ts"],
10-
"@hpke/dhkem-x448": ["../dhkem-x448/mod.ts"],
11-
"@noble/*": ["../../npm/node_modules/@noble/*"]
10+
"@hpke/dhkem-x448": ["../dhkem-x448/mod.ts"]
1211
},
1312
"noEmit": true,
1413
"allowImportingTsExtensions": true

0 commit comments

Comments
 (0)