Skip to content

Commit 31398ba

Browse files
committed
update against main
1 parent c7682d1 commit 31398ba

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tls/src/main/jdk1.4/org/bouncycastle/tls/crypto/impl/jcajce/JcaTlsCrypto.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,12 @@ else if (NamedGroup.refersToASpecificFiniteField(namedGroup))
465465
}
466466
else if (NamedGroup.refersToASpecificKem(namedGroup))
467467
{
468-
//Note: There is no AlgorithmParametersSpi for ML-KEM
469-
return KemUtil.getAlgorithmParameters(this, NamedGroup.getKemName(namedGroup));
468+
/*
469+
* TODO Return AlgorithmParameters to check against disabled algorithms?
470+
*
471+
* NOTE: See what the JDK/SunJSSE implementation does.
472+
*/
473+
return null;
470474
}
471475

472476
throw new IllegalArgumentException("NamedGroup not supported: " + NamedGroup.getText(namedGroup));
@@ -813,6 +817,11 @@ public boolean hasSRPAuthentication()
813817
return true;
814818
}
815819

820+
public TlsSecret createHybridSecret(TlsSecret s1, TlsSecret s2)
821+
{
822+
return adoptLocalSecret(Arrays.concatenate(s1.extract(), s2.extract()));
823+
}
824+
816825
public TlsSecret createSecret(byte[] data)
817826
{
818827
try

0 commit comments

Comments
 (0)