//
// EVP_PKEY_CTX_ctrl_str from 0xa1c1b8 to 0xa1c2b4 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x7d6ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:53 +0000
//
int __fastcall EVP_PKEY_CTX_ctrl_str(int a1, char *a2, int a3)
{
int (__fastcall *v4)(int, char *, int); // r8
if ( !a1 || !*(_DWORD *)a1 || (v4 = *(int (__fastcall **)(int, char *, int))(*(_DWORD *)a1 + 104)) == nullptr )
{
ERR_put_error(6, 150, 147, (int)"crypto/evp/pmeth_lib.c", 327);
return -2;
}
if ( strcmp(a2, "digest") )
return v4(a1, a2, a3);
if ( a3 && EVP_get_digestbyname(a3) )
return EVP_PKEY_CTX_ctrl(a1, -1, 248);
ERR_put_error(6, 150, 152, (int)"crypto/evp/pmeth_lib.c", 333);
return 0;
}