//
// EC_GROUP_set_seed from 0xd91208 to 0xd912a0 (152 bytes)
//
// 2 xrefs:
// > EC_GROUP_new_by_curve_name @ 0xd8f534
// > ??> @ 0x3d788
//
// 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
//
void *__fastcall EC_GROUP_set_seed(__int64 a1, const void *a2, size_t a3)
{
void *result; // x0
CRYPTO_free(*(_QWORD *)(a1 + 48), "crypto/ec/ec_lib.c", 383);
*(_QWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0;
if ( !a3 || !a2 )
return dword_0 + 1;
result = (void *)CRYPTO_malloc(a3, "crypto/ec/ec_lib.c", 390);
*(_QWORD *)(a1 + 48) = result;
if ( result )
{
memcpy(result, a2, a3);
*(_QWORD *)(a1 + 56) = a3;
return (void *)a3;
}
return result;
}