Skip to content

Commit 085e8d4

Browse files
committed
Hash nodes have instances.
1 parent f69b057 commit 085e8d4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • shared/cryptography/codeql/cryptography

shared/cryptography/codeql/cryptography/Model.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,8 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
10781078
* A hashing algorithm that transforms variable-length input into a fixed-size hash value.
10791079
*/
10801080
abstract class HashAlgorithmNode extends AlgorithmNode, THashAlgorithm {
1081+
HashAlgorithmInstance instance;
1082+
HashAlgorithmNode() { this = THashAlgorithm(instance) }
10811083
override string getInternalType() { result = "HashAlgorithm" }
10821084

10831085
final predicate hashTypeToNameMapping(THashType type, string name) {

0 commit comments

Comments
 (0)