//
// sub_8816E0 from 0x8816e0 to 0x8817c8 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0xa3a2d8
//
// 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 sub_8816E0(int a1, char *a2, const char *a3)
{
if ( !strcmp(a2, "dsa_paramgen_bits") || !strcmp(a2, "dsa_paramgen_q_bits") )
{
atoi(a3);
return EVP_PKEY_CTX_ctrl(a1, 116, 2);
}
else if ( !strcmp(a2, "dsa_paramgen_md") )
{
EVP_get_digestbyname((int)a3);
return EVP_PKEY_CTX_ctrl(a1, 116, 2);
}
else
{
return -2;
}
}