ConceptsShared: Add deprecated DataFlow::Node CryptographicOperation#getInput() predicate

This commit is contained in:
Alex Ford
2023-02-02 20:27:05 +00:00
parent 976b0401be
commit 61095b3c58
3 changed files with 18 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ module Cryptography {
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
DataFlow::Node getAnInput() { result = super.getAnInput() }
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
deprecated final DataFlow::Node getInput() { result = super.getInput() }
/**
* Gets the block mode used to perform this cryptographic operation.
* This may have no result - for example if the `CryptographicAlgorithm` used
@@ -67,6 +70,9 @@ module Cryptography {
/** Gets an input the algorithm is used on, for example the plain text input to be encrypted. */
abstract DataFlow::Node getAnInput();
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
deprecated final DataFlow::Node getInput() { result = this.getAnInput() }
/**
* Gets the block mode used to perform this cryptographic operation.
* This may have no result - for example if the `CryptographicAlgorithm` used