Skip to content

Commit 1fc3517

Browse files
authored
Merge pull request #750 from tls-attacker/cipherSuiteSupportedFix
fixed is supported in cipher suite function
2 parents 4dff8da + e92e8dc commit 1fc3517

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/constants/CipherSuite.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,13 @@ public boolean isSupportedInProtocol(ProtocolVersion version) {
661661
return version == ProtocolVersion.TLS13;
662662
}
663663

664-
if (this.name().endsWith("256") || this.name().endsWith("384") || this.isCCM() || this.isCCM_8()
665-
&& !this.name().contains("IDEA") && !this.name().contains("_DES") && !this.isExportSymmetricCipher()) {
664+
if (this.name().endsWith("256") || this.name().endsWith("384") || this.isCCM() || this.isCCM_8()) {
666665
return (version == ProtocolVersion.TLS12);
667666
}
667+
if ((this.name().contains("IDEA") || this.name().contains("_DES") || this.isExportSymmetricCipher())
668+
&& version == ProtocolVersion.TLS12) {
669+
return false;
670+
}
668671
return true;
669672
}
670673

0 commit comments

Comments
 (0)