Skip to content

Commit

Permalink
Use ML-KEM768 instead of Kyber768.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Oct 6, 2024
1 parent 10ea146 commit 76b3ef3
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 953 deletions.
15 changes: 14 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions import_map.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"imports": {
"@dajiaji/mlkem": "jsr:@dajiaji/mlkem@^2.1.0",
"@noble/ciphers/chacha": "npm:@noble/ciphers@^0.5.3/chacha",
"@noble/curves/ed25519": "npm:@noble/curves@^1.4.2/ed25519",
"@noble/curves/ed448": "npm:@noble/curves@^1.4.2/ed448",
Expand Down
1 change: 1 addition & 0 deletions packages/hybridkem-x25519-kyber768/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.3.1",
"exports": "./mod.ts",
"imports": {
"@dajiaji/mlkem": "jsr:@dajiaji/mlkem@^2.1.0",
"@noble/hashes": "npm:@noble/hashes@^1.4.0"
},
"publish": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Dhkem, Hybridkem, KemId } from "@hpke/common";

import { HkdfSha256, X25519 } from "@hpke/dhkem-x25519";

import { KemKyber768 } from "./kemKyber768.ts";
import { MlKem768 } from "./mlKem768.ts";

class DhkemX25519HkdfSha256 extends Dhkem implements DhkemInterface {
public readonly id: KemId = KemId.DhkemX25519HkdfSha256;
Expand Down Expand Up @@ -56,7 +56,7 @@ export class HybridkemX25519Kyber768 extends Hybridkem {
super(
KemId.HybridkemX25519Kyber768,
new DhkemX25519HkdfSha256(),
new KemKyber768(),
new MlKem768(),
new HkdfSha256(),
);
}
Expand Down
39 changes: 0 additions & 39 deletions packages/hybridkem-x25519-kyber768/src/kyber/consts.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/hybridkem-x25519-kyber768/src/kyber/errors.ts

This file was deleted.

42 changes: 0 additions & 42 deletions packages/hybridkem-x25519-kyber768/src/kyber/kyber768.ts

This file was deleted.

Loading

0 comments on commit 76b3ef3

Please sign in to comment.