//
// EVP_PKEY_CTX_ctrl_str from 0x8075b8 to 0x8076b4 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x63c6c
//
// 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
//
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;
}