//
// EVP_PKEY_CTX_ctrl_str from 0xdae448 to 0xdae544 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0xa0d40
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall EVP_PKEY_CTX_ctrl_str(__int64 *a1, char *a2, __int64 a3)
{
unsigned int (__fastcall *v5)(__int64 *, char *, __int64); // x22
unsigned int v6; // w20
if ( !a1 || !*a1 || (v5 = *(unsigned int (__fastcall **)(__int64 *, char *, __int64))(*a1 + 200)) == nullptr )
{
v6 = -2;
ERR_put_error(6, 150, 147, (__int64)"crypto/evp/pmeth_lib.c", 327);
return v6;
}
v6 = strcmp(a2, "digest");
if ( !v6 )
{
if ( a3 && EVP_get_digestbyname(a3) )
return EVP_PKEY_CTX_ctrl(a1, -1, 248);
ERR_put_error(6, 150, 152, (__int64)"crypto/evp/pmeth_lib.c", 333);
return v6;
}
return v5(a1, a2, a3);
}