Fix EVP_Hash_Initializer typo

This commit is contained in:
Nicolas Will
2025-05-08 02:58:43 +02:00
parent 1d8a57e7da
commit 1135fbe950
2 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
import cpp
abstract class EVP_Hash_Inititalizer extends Call {
abstract class EVP_Hash_Initializer extends Call {
Expr getContextArg() { result = this.(Call).getArgument(0) }
abstract Expr getAlgorithmArg();
}
class EVP_DigestInit_Variant_Calls extends EVP_Hash_Inititalizer {
class EVP_DigestInit_Variant_Calls extends EVP_Hash_Initializer {
EVP_DigestInit_Variant_Calls() {
this.(Call).getTarget().getName() in [
"EVP_DigestInit", "EVP_DigestInit_ex", "EVP_DigestInit_ex2"

View File

@@ -13,7 +13,7 @@ import experimental.quantum.OpenSSL.AlgorithmValueConsumers.OpenSSLAlgorithmValu
abstract class EVP_Hash_Operation extends OpenSSLOperation, Crypto::HashOperationInstance {
Expr getContextArg() { result = this.(Call).getArgument(0) }
EVP_Hash_Inititalizer getInitCall() {
EVP_Hash_Initializer getInitCall() {
CTXFlow::ctxArgFlowsToCtxArg(result.getContextArg(), this.getContextArg())
}
}
@@ -38,7 +38,7 @@ class EVP_Q_Digest_Operation extends EVP_Hash_Operation {
}
//override Crypto::AlgorithmConsumer getAlgorithmConsumer() { }
override EVP_Hash_Inititalizer getInitCall() {
override EVP_Hash_Initializer getInitCall() {
// This variant of digest does not use an init
// and even if it were used, the init would be ignored/undefined
none()
@@ -74,7 +74,7 @@ class EVP_Digest_Operation extends EVP_Hash_Operation {
DataFlow::exprNode(this.(Call).getArgument(4)))
}
override EVP_Hash_Inititalizer getInitCall() {
override EVP_Hash_Initializer getInitCall() {
// This variant of digest does not use an init
// and even if it were used, the init would be ignored/undefined
none()