//
// EC_GROUP_set_seed from 0x100f568 to 0x100f600 (152 bytes)
//
// 2 xrefs:
// > EC_GROUP_new_by_curve_name @ 0x100d894
// > ??> @ 0x58e10
//
// 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:16:01 +0000
//
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;
}