//
// EVP_PKEY_CTX_ctrl_str from 0x102c7a8 to 0x102c8a4 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0xd3900
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:17 +0000
//
__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);
}