@@ -46,14 +46,12 @@ abstract class EVP_Final_Call extends EVP_Cipher_Operation {
46
46
}
47
47
48
48
class EVP_Cipher_Call extends EVP_Cipher_Operation {
49
- // TODO/QUESTION: what is the better way to do this?
50
49
EVP_Cipher_Call ( ) { this .( Call ) .getTarget ( ) .getName ( ) = "EVP_Cipher" }
51
50
52
51
override Expr getInputArg ( ) { result = this .( Call ) .getArgument ( 2 ) }
53
52
}
54
53
55
54
class EVP_Encrypt_Decrypt_or_Cipher_Update_Call extends EVP_Update_Call {
56
- // TODO/QUESTION: what is the better way to do this?
57
55
EVP_Encrypt_Decrypt_or_Cipher_Update_Call ( ) {
58
56
this .( Call ) .getTarget ( ) .getName ( ) in [
59
57
"EVP_EncryptUpdate" , "EVP_DecryptUpdate" , "EVP_CipherUpdate"
@@ -64,10 +62,8 @@ class EVP_Encrypt_Decrypt_or_Cipher_Update_Call extends EVP_Update_Call {
64
62
}
65
63
66
64
class EVP_Encrypt_Decrypt_or_Cipher_Final_Call extends EVP_Final_Call {
67
- // TODO/QUESTION: what is the better way to do this?
68
65
EVP_Encrypt_Decrypt_or_Cipher_Final_Call ( ) {
69
- this .( Call ) .getTarget ( ) .getName ( ) in
70
- [
66
+ this .( Call ) .getTarget ( ) .getName ( ) in [
71
67
"EVP_EncryptFinal_ex" , "EVP_DecryptFinal_ex" , "EVP_CipherFinal_ex" , "EVP_EncryptFinal" ,
72
68
"EVP_DecryptFinal" , "EVP_CipherFinal"
73
69
]
@@ -77,11 +73,9 @@ class EVP_Encrypt_Decrypt_or_Cipher_Final_Call extends EVP_Final_Call {
77
73
class EVPCipherOutput extends CipherOutputArtifact {
78
74
EVPCipherOutput ( ) { exists ( EVP_Cipher_Operation op | op .getOutputArg ( ) = this ) }
79
75
80
- override DataFlow:: Node getOutputNode ( ) {
81
- result .asExpr ( ) = this
82
- }
76
+ override DataFlow:: Node getOutputNode ( ) { result .asExpr ( ) = this }
83
77
}
84
78
85
79
class EVPCipherInputArgument extends Expr {
86
80
EVPCipherInputArgument ( ) { exists ( EVP_Cipher_Operation op | op .getInputArg ( ) = this ) }
87
- }
81
+ }
0 commit comments