Skip to content

Commit 74271e4

Browse files
committed
Quantum/Crypto: To avoid ambiguity, altered OpenSSL EVP_Update_Call and EVP_Final_Call used for ciphers to explicitly say "Cipher", e.g., EVP_Cipher_Update_Call. This is also consistent with the new analogous digest operations.
1 parent 9712474 commit 74271e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpp/ql/lib/experimental/quantum/OpenSSL/Operations/EVPCipherOperation.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class EVP_Cipher_Call extends EVP_Cipher_Operation {
7474
}
7575

7676
// NOTE: not modeled as cipher operations, these are intermediate calls
77-
class EVP_Update_Call extends Call {
78-
EVP_Update_Call() {
77+
class EVP_Cipher_Update_Call extends Call {
78+
EVP_Cipher_Update_Call() {
7979
this.(Call).getTarget().getName() in [
8080
"EVP_EncryptUpdate", "EVP_DecryptUpdate", "EVP_CipherUpdate"
8181
]
@@ -88,15 +88,15 @@ class EVP_Update_Call extends Call {
8888
Expr getContextArg() { result = this.(Call).getArgument(0) }
8989
}
9090

91-
class EVP_Final_Call extends EVP_Cipher_Operation {
92-
EVP_Final_Call() {
91+
class EVP_Cipher_Final_Call extends EVP_Cipher_Operation {
92+
EVP_Cipher_Final_Call() {
9393
this.(Call).getTarget().getName() in [
9494
"EVP_EncryptFinal_ex", "EVP_DecryptFinal_ex", "EVP_CipherFinal_ex", "EVP_EncryptFinal",
9595
"EVP_DecryptFinal", "EVP_CipherFinal"
9696
]
9797
}
9898

99-
EVP_Update_Call getUpdateCalls() {
99+
EVP_Cipher_Update_Call getUpdateCalls() {
100100
CTXFlow::ctxArgFlowsToCtxArg(result.getContextArg(), this.getContextArg())
101101
}
102102

0 commit comments

Comments
 (0)