@@ -33,13 +33,13 @@ predicate knownOpenSslConstantToPaddingFamilyType(
3333 exists ( string name |
3434 name = e .( KnownOpenSslAlgorithmExpr ) .getNormalizedName ( ) and
3535 (
36- name . matches ( "OAEP" ) and type = Crypto:: OAEP ( )
36+ name = "OAEP" and type = Crypto:: OAEP ( )
3737 or
38- name . matches ( "PSS" ) and type = Crypto:: PSS ( )
38+ name = "PSS" and type = Crypto:: PSS ( )
3939 or
40- name . matches ( "PKCS7" ) and type = Crypto:: PKCS7 ( )
40+ name = "PKCS7" and type = Crypto:: PKCS7 ( )
4141 or
42- name . matches ( "PKCS1V15" ) and type = Crypto:: PKCS1_v1_5 ( )
42+ name = "PKCS1V15" and type = Crypto:: PKCS1_v1_5 ( )
4343 )
4444 )
4545}
@@ -85,7 +85,7 @@ class KnownOpenSslPaddingConstantAlgorithmInstance extends OpenSslAlgorithmInsta
8585 // Source is `this`
8686 src .asExpr ( ) = this and
8787 // This traces to a padding-specific consumer
88- RSAPaddingAlgorithmToPaddingAlgorithmValueConsumerFlow :: flow ( src , sink )
88+ RsaPaddingAlgorithmToPaddingAlgorithmValueConsumerFlow :: flow ( src , sink )
8989 ) and
9090 isPaddingSpecificConsumer = true
9191 }
@@ -143,7 +143,7 @@ class KnownOpenSslPaddingConstantAlgorithmInstance extends OpenSslAlgorithmInsta
143143// this instanceof Literal and
144144// this.getValue().toInt() in [0, 1, 3, 4, 5, 6, 7, 8]
145145// // TODO: trace to padding-specific consumers
146- // RSAPaddingAlgorithmToPaddingAlgorithmValueConsumerFlow
146+ // RsaPaddingAlgorithmToPaddingAlgorithmValueConsumerFlow
147147// }
148148// override string getRawPaddingAlgorithmName() { result = this.(Literal).getValue().toString() }
149149// override Crypto::TPaddingType getPaddingType() {
@@ -161,10 +161,10 @@ class KnownOpenSslPaddingConstantAlgorithmInstance extends OpenSslAlgorithmInsta
161161// else result = Crypto::OtherPadding()
162162// }
163163// }
164- class OAEPPaddingAlgorithmInstance extends Crypto:: OAEPPaddingAlgorithmInstance ,
164+ class OaepPaddingAlgorithmInstance extends Crypto:: OAEPPaddingAlgorithmInstance ,
165165 KnownOpenSslPaddingConstantAlgorithmInstance
166166{
167- OAEPPaddingAlgorithmInstance ( ) {
167+ OaepPaddingAlgorithmInstance ( ) {
168168 this .( Crypto:: PaddingAlgorithmInstance ) .getPaddingType ( ) = Crypto:: OAEP ( )
169169 }
170170
0 commit comments