mirror of
https://github.com/github/codeql.git
synced 2026-04-18 13:34:02 +02:00
Adding missing block modes.
This commit is contained in:
@@ -761,12 +761,14 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
|
||||
newtype TBlockCipherModeOperationType =
|
||||
ECB() or // Not secure, widely used
|
||||
CBC() or // Vulnerable to padding oracle attacks
|
||||
CFB() or
|
||||
GCM() or // Widely used AEAD mode (TLS 1.3, SSH, IPsec)
|
||||
CTR() or // Fast stream-like encryption (SSH, disk encryption)
|
||||
XTS() or // Standard for full-disk encryption (BitLocker, LUKS, FileVault)
|
||||
CCM() or // Used in lightweight cryptography (IoT, WPA2)
|
||||
SIV() or // Misuse-resistant encryption, used in secure storage
|
||||
OCB() or // Efficient AEAD mode
|
||||
OFB() or
|
||||
OtherMode()
|
||||
|
||||
class ModeOfOperationAlgorithmNode extends AlgorithmNode, TModeOfOperationAlgorithm {
|
||||
@@ -807,6 +809,10 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
|
||||
or
|
||||
type instanceof OCB and name = "OCB"
|
||||
or
|
||||
type instanceof CFB and name = "CFB"
|
||||
or
|
||||
type instanceof OFB and name = "OFB"
|
||||
or
|
||||
type instanceof OtherMode and name = this.getRawAlgorithmName()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user