@@ -36,7 +36,7 @@ module Cryptography {
36
36
class CryptoRfc2898DeriveBytes extends HashingAlgorithms {
37
37
CryptoRfc2898DeriveBytes ( ) {
38
38
exists ( ObjectCreation object |
39
- object .getType ( ) .getQualifiedName ( ) = "System.Security.Cryptography. Rfc2898DeriveBytes" and
39
+ object .getType ( ) .hasFullyQualifiedName ( "System.Security.Cryptography" , " Rfc2898DeriveBytes") and
40
40
this .asExpr ( ) = object
41
41
)
42
42
}
@@ -67,7 +67,7 @@ module Cryptography {
67
67
exists ( ObjectCreation object |
68
68
object
69
69
.getType ( )
70
- .hasQualifiedName ( "System.Security.Cryptography" , "DSACryptoServiceProvider" ) and
70
+ .hasFullyQualifiedName ( "System.Security.Cryptography" , "DSACryptoServiceProvider" ) and
71
71
this .asExpr ( ) = object
72
72
)
73
73
}
@@ -90,7 +90,7 @@ module Cryptography {
90
90
exists ( ObjectCreation object |
91
91
object
92
92
.getType ( )
93
- .hasQualifiedName ( "System.Security.Cryptography" , "RC2CryptoServiceProvider" ) and
93
+ .hasFullyQualifiedName ( "System.Security.Cryptography" , "RC2CryptoServiceProvider" ) and
94
94
this .asExpr ( ) = object
95
95
)
96
96
}
@@ -113,12 +113,13 @@ module Cryptography {
113
113
exists ( ObjectCreation object |
114
114
object
115
115
.getType ( )
116
- .hasQualifiedName ( "System.Security.Cryptography" , [ "RSACryptoServiceProvider" , "RSACng" ] ) and
116
+ .hasFullyQualifiedName ( "System.Security.Cryptography" ,
117
+ [ "RSACryptoServiceProvider" , "RSACng" ] ) and
117
118
this .asExpr ( ) = object
118
119
)
119
120
or
120
121
exists ( MethodCall call |
121
- call .getType ( ) .hasQualifiedName ( "System.Security.Cryptography" , [ "RSA" ] ) and
122
+ call .getType ( ) .hasFullyQualifiedName ( "System.Security.Cryptography" , [ "RSA" ] ) and
122
123
call .getTarget ( ) .hasName ( "Create" ) and
123
124
this .asExpr ( ) = call
124
125
)
@@ -152,7 +153,7 @@ module Cryptography {
152
153
exists ( ObjectCreation object |
153
154
object
154
155
.getType ( )
155
- .hasQualifiedName ( "System.Security.Cryptography" ,
156
+ .hasFullyQualifiedName ( "System.Security.Cryptography" ,
156
157
[ "HMACMD5" , "HMACSHA1" , "HMACSHA256" , "HMACSHA384" , "HMACSHA512" , "HMACRIPEMD160" ] ) and
157
158
this .asExpr ( ) = object
158
159
)
0 commit comments