Skip to content

Commit 0183905

Browse files
committed
Replace Kyber 512 with ML-KEM 768.
Devin did some work here.
1 parent 85bc7ba commit 0183905

File tree

5 files changed

+114
-114
lines changed

5 files changed

+114
-114
lines changed

.github/workflows/kyber.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Kyber Tests
1+
name: ML-KEM Tests
22

33
on:
44
push:
@@ -22,7 +22,7 @@ jobs:
2222
id: cache-liboqs
2323
with:
2424
path: build-dir/
25-
key: wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
25+
key: wolfssh-mlkem-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
2626
lookup-only: true
2727

2828
- name: Checkout liboqs
@@ -53,7 +53,7 @@ jobs:
5353
id: cache-wolfssl
5454
with:
5555
path: build-dir/
56-
key: wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
56+
key: wolfssh-mlkem-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
5757
lookup-only: true
5858

5959
- name: Checkout, build, and install wolfssl
@@ -77,14 +77,14 @@ jobs:
7777
uses: actions/cache@v4
7878
with:
7979
path: build-dir/
80-
key: wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
80+
key: wolfssh-mlkem-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
8181
fail-on-cache-miss: true
8282

8383
- name: Checking cache for wolfssl
8484
uses: actions/cache@v4
8585
with:
8686
path: build-dir/
87-
key: wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
87+
key: wolfssh-mlkem-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
8888
fail-on-cache-miss: true
8989

9090
- name: Checkout, build, and test wolfssh

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,21 +450,21 @@ The wolfSSH client and server will automatically negotiate using Curve25519.
450450
POST-QUANTUM
451451
============
452452

453-
wolfSSH now supports the post-quantum algorithm ML-KEM (also known as Kyber).
454-
It uses the KYBER512 parameter set and is hybridized with ECDHE over the P-256
453+
wolfSSH now supports the post-quantum algorithm ML-KEM (formerly known as Kyber).
454+
It uses the ML-KEM-512 parameter set and is hybridized with ECDHE over the P-256
455455
ECC curve.
456456

457457
In order to use this key exchange you must build and install wolfSSL on your
458458
system. Here is an example of an effective configuration:
459459

460-
$ ./configure --enable-wolfssh --enable-experimental --enable-kyber
460+
$ ./configure --enable-wolfssh --enable-experimental --enable-mlkem
461461

462462
After that, simply configure and build wolfssh as usual:
463463

464464
$ ./configure
465465
$ make all
466466

467-
The wolfSSH client and server will automatically negotiate using KYBER512
467+
The wolfSSH client and server will automatically negotiate using ML-KEM-512
468468
hybridized with ECDHE over the P-256 ECC curve.
469469

470470
$ ./examples/echoserver/echoserver -f
@@ -487,7 +487,7 @@ The following is sufficient for build and execution:
487487
$ cd openssh-OQS-OpenSSH-snapshot-2021-08/
488488
$ ./configure --with-liboqs-dir=/usr/local
489489
$ make all
490-
$ ./ssh -o"KexAlgorithms=ecdh-nistp256-kyber-512r3-sha256-d00@openquantumsafe.org" \
490+
$ ./ssh -o"KexAlgorithms=mlkem768nistp256-sha256" \
491491
-o"PubkeyAcceptedAlgorithms +ssh-rsa" \
492492
-o"HostkeyAlgorithms +ssh-rsa" \
493493
jill@localhost -p 22222

0 commit comments

Comments
 (0)