Skip to content

Commit c8e0d0c

Browse files
authored
Merge pull request #445 from RUB-NDS/more_weak_ciphers
Added isNull(), isWeak() to CipherSuite class.
2 parents 3aae8c4 + 0d8d9c4 commit c8e0d0c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,4 +952,13 @@ public boolean isSHA256() {
952952
public boolean isAnon() {
953953
return this.name().contains("anon");
954954
}
955+
956+
public boolean isNull() {
957+
return this.name().toLowerCase().contains("null");
958+
}
959+
960+
// Note: We don't consider DES as weak for these purposes.
961+
public boolean isWeak() {
962+
return this.isExport() || this.isExportSymmetricCipher() || this.isAnon() || this.isNull();
963+
}
955964
}

0 commit comments

Comments
 (0)