We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9458ba commit c98e6d7Copy full SHA for c98e6d7
cpp/ql/lib/experimental/Quantum/OpenSSL/EVPCipherOperation.qll
@@ -70,6 +70,17 @@ class EVP_Encrypt_Decrypt_or_Cipher_Final_Call extends EVP_Final_Call {
70
}
71
72
73
+class EVP_PKEY_Operation extends EVP_Cipher_Operation {
74
+ EVP_PKEY_Operation() {
75
+ this.(Call).getTarget().getName() in ["EVP_PKEY_decrypt", "EVP_PKEY_encrypt"]
76
+ }
77
+
78
+ override Expr getInputArg() { result = this.(Call).getArgument(3) }
79
+ // TODO: how PKEY is initialized is different that symmetric cipher
80
+ // Consider making an entirely new class for this and specializing
81
+ // the get init call
82
+}
83
84
class EVPCipherOutput extends CipherOutputArtifact {
85
EVPCipherOutput() { exists(EVP_Cipher_Operation op | op.getOutputArg() = this) }
86
0 commit comments