Skip to content

Commit 1a67e71

Browse files
author
gefeili
committed
As announced in the 1.85 release notes, remove the deprecated ML-KEM implementation under org.bouncycastle.pqc.crypto.mlkem (public API and its internal engine), repointing the pqc.crypto.util key-factory classes and pqc.crypto.util.PQCOtherInfoGenerator - its only remaining production callers - to the canonical org.bouncycastle.crypto.params / generators / kems classes. PQCOtherInfoGenerator.PartyU/PartyV widen their constructor parameter from the pqc-side KEMParameters marker interface to CipherParameters, since the canonical MLKEMParameters does not implement that marker interface (only NTRUParameters, which stays under pqc.crypto, still does) - the two markers were never used for anything but instanceof dispatch to the already-narrowed concrete type. Also adds the ML-KEM round trip through PQCOtherInfoGenerator, which had no test coverage of any kind before this.
1 parent 089fe42 commit 1a67e71

38 files changed

Lines changed: 60 additions & 1880 deletions
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* ML-KEM (FIPS 203) bindings of the lightweight KEM API
33
* ({@link org.bouncycastle.crypto.EncapsulatedSecretGenerator} /
4-
* {@link org.bouncycastle.crypto.EncapsulatedSecretExtractor}) sitting on top of the
5-
* {@link org.bouncycastle.pqc.crypto.mlkem} primitives.
4+
* {@link org.bouncycastle.crypto.EncapsulatedSecretExtractor}), backing
5+
* {@link org.bouncycastle.crypto.kems.MLKEMGenerator} and
6+
* {@link org.bouncycastle.crypto.kems.MLKEMExtractor}.
67
*/
78
package org.bouncycastle.crypto.kems.mlkem;

‎core/src/main/java/org/bouncycastle/pqc/crypto/mlkem/CBD.java‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎core/src/main/java/org/bouncycastle/pqc/crypto/mlkem/MLKEMEngine.java‎

Lines changed: 0 additions & 272 deletions
This file was deleted.

‎core/src/main/java/org/bouncycastle/pqc/crypto/mlkem/MLKEMExtractor.java‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)