Skip to content

Use ML-KEM768 instead of Kyber768. #404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading