Skip to content

Commit

Permalink
TKSS-1004: KonaSSLTlcpHandshakePerfTest adds case on TLCP_ECDHE_SM4_C…
Browse files Browse the repository at this point in the history
…BC_SM3
  • Loading branch information
johnshajiang committed Dec 23, 2024
1 parent cd6e0e8 commit e97d25c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ public class KonaSSLTlcpHandshakePerfTest {
@Param({"TLCPv1.1"})
String protocol;

@Param({"TLCP_ECC_SM4_CBC_SM3", "TLCP_ECDHE_SM4_CBC_SM3"})
String cipherSuite;

@Param({"false", "true"})
boolean resume;

Expand Down Expand Up @@ -168,7 +171,7 @@ private void createSSLEngines() {
clientEngine = clientContext.createSSLEngine("client", 80);
clientEngine.setUseClientMode(true);
clientEngine.setEnabledProtocols(new String[] {"TLCPv1.1"});
clientEngine.setEnabledCipherSuites(new String[] { "TLCP_ECC_SM4_CBC_SM3" });
clientEngine.setEnabledCipherSuites(new String[] {cipherSuite});
}

private HandshakeStatus checkResult(SSLEngine engine, SSLEngineResult result) {
Expand Down

0 comments on commit e97d25c

Please sign in to comment.