//
// sub_88A824 from 0x88a824 to 0x88aa1c (504 bytes)
//
// 1 xrefs:
// > ??> @ 0xa3a344
//
// 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_88A824(int a1, char *a2, char *a3)
{
int v7; // r5
if ( strcmp(a2, "ec_paramgen_curve") )
{
if ( !strcmp(a2, "ec_param_enc") )
{
if ( !strcmp(a3, "explicit") || !strcmp(a3, "named_curve") )
return EVP_PKEY_CTX_ctrl(a1, 408, 6);
}
else
{
v7 = strcmp(a2, "ecdh_kdf_md");
if ( !v7 )
{
if ( EVP_get_digestbyname((int)a3) )
return EVP_PKEY_CTX_ctrl(a1, 408, 1024);
ERR_put_error(16, 198, 151, (int)"crypto/ec/ec_pmeth.c", 372);
return v7;
}
if ( !strcmp(a2, "ecdh_cofactor_mode") )
{
atoi(a3);
return EVP_PKEY_CTX_ctrl(a1, 408, 1024);
}
}
return -2;
}
if ( EC_curve_nist2nid(a3) || OBJ_sn2nid((int)a3) || OBJ_ln2nid((int)a3) )
return EVP_PKEY_CTX_ctrl(a1, 408, 6);
ERR_put_error(16, 198, 141, (int)"crypto/ec/ec_pmeth.c", 356);
return 0;
}