//
// sub_A9F424 from 0xa9f424 to 0xa9f61c (504 bytes)
//
// 1 xrefs:
// > ??> @ 0xc815c4
//
// 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:09:11 +0000
//
int __fastcall sub_A9F424(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;
}