CodeQL library for C/C++
Search

Module Encryption

Provides predicates relating to encryption in C and C++.

Import path

import semmle.code.cpp.security.Encryption

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Predicates

algorithmBlacklist

DEPRECATED: Terminology has been updated. Use getAnInsecureAlgorithmName() instead.

algorithmBlacklistRegex

DEPRECATED: Terminology has been updated. Use getInsecureAlgorithmRegex() instead.

algorithmWhitelist

DEPRECATED: Terminology has been updated. Use getASecureAlgorithmName() instead.

algorithmWhitelistRegex

DEPRECATED: Terminology has been updated. Use getSecureAlgorithmRegex() instead.

getASecureAlgorithmName

Gets the name of an algorithm that is known to be secure.

getAnInsecureAlgorithmName

Gets the name of an algorithm that is known to be insecure.

getAnInsecureHashAlgorithmName

Gets the name of a hash algorithm that is insecure if it is being used for encryption (but it is hard to know when that is happening).

getInsecureAlgorithmRegex

Gets the regular expression used for matching strings that look like they contain an algorithm that is known to be insecure.

getSecureAlgorithmRegex

Gets a regular expression for matching strings that look like they contain an algorithm that is known to be secure.

hashAlgorithmBlacklist

DEPRECATED: Terminology has been updated. Use getAnInsecureHashAlgorithmName() instead.