CodeQL library for Rust
codeql/rust-all 0.2.6 (changelog, source)
Search

Class ModeledHashOperation

An externally modeled operation that hashes data, for example a call to md5::Md5::digest(data). The model should identify the argument of a call that is the data to be hashed.

Import path

import codeql.rust.security.WeakSensitiveDataHashingExtensions

Direct supertypes

Indirect supertypes

Fields

Predicates

getAlgorithm

Gets the algorithm used, if it matches a known CryptographicAlgorithm.

getAnInput

Gets an input the algorithm is used on, for example the plain text input to be encrypted.

getBlockMode

Gets the block mode used to perform this cryptographic operation.

getInitialization

Gets the data flow node where the cryptographic algorithm used in this operation is configured.

Inherited predicates

asExpr

Gets the expression that corresponds to this node, if any.

from NodePublic
asParameter

Gets the parameter that corresponds to this node, if any.

from NodePublic
asPat

Gets the pattern that corresponds to this node, if any.

from NodePublic
getLocation

Gets the location of this node.

from NodePublic
toString

Gets a textual representation of this node.

from NodePublic

Charpred