//
// sub_10B2418 from 0x10b2418 to 0x10b25f4 (476 bytes)
//
// 1 xrefs:
// > ??> @ 0x1410530
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:44 +0000
//
__int64 __fastcall sub_10B2418(__int64 *a1, char *a2, char *a3)
{
unsigned int v6; // w20
v6 = strcmp(a2, "ec_paramgen_curve");
if ( !v6 )
{
if ( (unsigned int)EC_curve_nist2nid(a3)
|| (unsigned int)OBJ_sn2nid((__int64)a3)
|| (unsigned int)OBJ_ln2nid((__int64)a3) )
{
return EVP_PKEY_CTX_ctrl(a1, 408, 6);
}
ERR_put_error(16, 198, 141, (__int64)"crypto/ec/ec_pmeth.c", 356);
return v6;
}
if ( !strcmp(a2, "ec_param_enc") )
{
if ( !strcmp(a3, "explicit") || !strcmp(a3, "named_curve") )
return EVP_PKEY_CTX_ctrl(a1, 408, 6);
return (unsigned int)-2;
}
v6 = strcmp(a2, "ecdh_kdf_md");
if ( v6 )
{
if ( !strcmp(a2, "ecdh_cofactor_mode") )
{
atoi(a3);
return EVP_PKEY_CTX_ctrl(a1, 408, 1024);
}
return (unsigned int)-2;
}
if ( EVP_get_digestbyname((__int64)a3) )
return EVP_PKEY_CTX_ctrl(a1, 408, 1024);
ERR_put_error(16, 198, 151, (__int64)"crypto/ec/ec_pmeth.c", 372);
return v6;
}