File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
tls/src/main/jdk1.4/org/bouncycastle/tls/crypto/impl/jcajce Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments